Skip to content

Commit

Permalink
test: event.id no longer required
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Nov 22, 2017
1 parent c43fe7e commit 1422e47
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/unit/event-handler-receive-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ test('options: none', t => {
t.end()
})

test('options: id', t => {
test('options: name', t => {
t.throws(() => {
receive(state, {id: '123'})
receive(state, {name: 'foo'})
})
t.end()
})

test('options: id, name', t => {
t.throws(() => {
receive(state, {id: '123', name: 'foo'})
test('options: name, payload', t => {
t.doesNotThrow(() => {
receive(state, {name: 'foo', payload: {}})
})
t.end()
})

0 comments on commit 1422e47

Please sign in to comment.