Fix tests

See #63

- Switch from testling to jsdom for browser APIs
- Switch from coverify to nyc for coverage reports
- Clean up related dead code and tooling
This commit is contained in:
Behind The Math
2018-01-08 16:54:36 -05:00
parent 6491e32437
commit 96b2add16f
7 changed files with 25 additions and 12532 deletions

View File

@@ -102,7 +102,8 @@ tape("test events on top level elements", function(t) {
el = window;
el.className = ""
on(el, "click", classCb)
// With jsdom, the default this is global, not window, so we need to explicitly bind to window.
on(el, "click", classCb.bind(window))
trigger(el, "click")
t.equal(el.className, "on", "attached callback has been fired properly on window")