mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-28 05:54:48 -04:00
Update tests.
This commit is contained in:
parent
babb952485
commit
5bbc88b8e2
4 changed files with 44 additions and 33 deletions
|
@ -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');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue