Skip to content

Instantly share code, notes, and snippets.

Ryan Barth ryanucode

Block or report user

Report or block ryanucode

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Types.elm
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
View assertions.diff
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))
You can’t perform that action at this time.