mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-15 02:14:06 +02:00
Update tests.
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
Reference in New Issue
Block a user