Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Nov 17, 2018
1 parent 2827cd7 commit d576d4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test('handles events when instantiated with a node', t => {
const ctx = new HandlerClass()
const handler = new DOMEventHandler(ctx, node)
t.true(existy(handler), 'handler created')
var event = new CustomEvent('customevent', { detail: {unicorn: 'rainbows'} })
var event = new CustomEvent('customevent', { detail: { unicorn: 'rainbows' } })

node.dispatchEvent(event)
})
Expand All @@ -66,7 +66,7 @@ test('handles events when attached after the fact', t => {
const ctx = new HandlerClass()
const handler = new DOMEventHandler(ctx)
handler.addEventListeners(node)
var event = new CustomEvent('customevent', { detail: {unicorn: 'rainbows'} })
var event = new CustomEvent('customevent', { detail: { unicorn: 'rainbows' } })

node.dispatchEvent(event)
})
Expand All @@ -84,7 +84,7 @@ test('doesnt handle events when removed', t => {
const ctx = new HandlerClass()
const handler = new DOMEventHandler(ctx, node)
t.true(existy(handler), 'handler created')
var event = new CustomEvent('customevent', { detail: {unicorn: 'rainbows'} })
var event = new CustomEvent('customevent', { detail: { unicorn: 'rainbows' } })
handler.removeEventListeners(node)
node.dispatchEvent(event)
setTimeout(() => {
Expand Down

0 comments on commit d576d4b

Please sign in to comment.