Switch file names from jade to pug.

This commit is contained in:
Lars Jung 2016-06-04 02:43:48 +02:00
parent 3a2e61b163
commit f0a9937dc6
8 changed files with 57 additions and 7 deletions

View file

@ -0,0 +1,22 @@
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', 'unsub', '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');
});