UNPKG

@platform/cell.tmpl

Version:

Template generator for the system

24 lines (19 loc) 541 B
import { expect, rx } from '../../test'; import { Name } from '.'; const bus = rx.bus(); describe('BusEvents', () => { describe('is', () => { const is = Name.Events.is; it('is (static/instance)', () => { const events = Name.Events({ bus }); expect(events.is).to.equal(is); }); it('is.base', () => { const test = (type: string, expected: boolean) => { expect(is.base({ type, payload: {} })).to.eql(expected); }; test('foo', false); test('namespace/', true); }); }); });