This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |