h5ai/test/tests/unit/core/event.js
2016-07-02 02:40:34 +02:00

18 lines
479 B
JavaScript

const {test, assert} = require('scar');
const event = require('../../../../src/_h5ai/public/js/lib/core/event');
test('event is object', () => {
assert.equal(typeof event, 'object');
});
test('event has the right props', () => {
assert.deepEqual(Object.keys(event), ['sub', 'pub']);
});
test('event.sub is function', () => {
assert.equal(typeof event.sub, 'function');
});
test('event.pub is function', () => {
assert.equal(typeof event.pub, 'function');
});