Update tests.

This commit is contained in:
Lars Jung 2016-07-02 02:40:34 +02:00
parent babb952485
commit 5bbc88b8e2
4 changed files with 44 additions and 33 deletions

View file

@ -6,17 +6,13 @@ test('event is object', () => {
});
test('event has the right props', () => {
assert.deepEqual(Object.keys(event), ['sub', 'unsub', 'pub']);
assert.deepEqual(Object.keys(event), ['sub', 'pub']);
});
test('event.sub is function', () => {
assert.equal(typeof event.sub, 'function');
});
test('event.unsub is function', () => {
assert.equal(typeof event.unsub, 'function');
});
test('event.pub is function', () => {
assert.equal(typeof event.pub, 'function');
});