Skip to content

Instantly share code, notes, and snippets.

View ryanucode's full-sized avatar

Ryan Barth ryanucode

View GitHub Profile
diff --git a/lib/html-assertions.js b/lib/html-assertions.js
index 5626921..c8ef359 100644
--- a/lib/html-assertions.js
+++ b/lib/html-assertions.js
@@ -5,6 +5,12 @@ const dom = require('jsdom').jsdom(rawHtml)
const document = dom
const window = dom.defaultView
+const rejections = new Set()
+process.on('unhandledRejection', (err, p) => rejections.add(p))
module Lib.Types exposing (..)
import Json.Encode as Encode
import Set exposing (Set)
type alias Id = String
type alias FileId = String
type alias TokenId = String
type alias ExerciseId = String
type alias ChapterId = String