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

@ -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');
});

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');
});