mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-02 16:19:48 -04:00
Update tests.
This commit is contained in:
parent
babb952485
commit
5bbc88b8e2
4 changed files with 44 additions and 33 deletions
|
@ -8,14 +8,3 @@ test('window is global object', () => {
|
|||
test('document is global object', () => {
|
||||
assert.equal(typeof global.document, 'object');
|
||||
});
|
||||
|
||||
test('jQuery and $ are global functions', () => {
|
||||
assert.equal(typeof global.jQuery, 'function');
|
||||
assert.equal(global.jQuery.fn.jquery, '2.2.4');
|
||||
assert.equal(global.jQuery, global.$);
|
||||
});
|
||||
|
||||
test('_ is global function', () => {
|
||||
assert.equal(typeof global._, 'function');
|
||||
assert.equal(global._.VERSION, '4.13.1');
|
||||
});
|
||||
|
|
|
@ -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