UNPKG

dpaw-brocket-channel

Version:

Fundamental communication component

28 lines (22 loc) 656 B
/** * @fileOverview * @name channel.js<test> * @author Gavin Coombes * @license BSD-3-Clause */ let chai = require('chai'); let assert = chai.assert; let eq = chai.assert.equal; let ok = assert.ok; let Channel = require('../index'); var Suite = describe('Channel', function() { describe('channel', function () { it('should have a channel', () => assert.ok(Channel)); it('is not Bizarro', () => eq(1, 1, 'Or maybe its expected')); it('has an super init method', () => ok(Channel.$init)); it('a child does not have init method', () => { let child = Object.create(Channel); assert.notOk(child.init); }); }); });