UNPKG

headrush

Version:

Kick start your app after resolving dependancies

14 lines (11 loc) 385 B
var HeadRush = require('../') var test = require('tape').test test('should throw error when dependencies are not passed while init', function (t) { t.plan(1) try { var headrush = new HeadRush({namespace: 'no-events'}) headrush.stun({namespace: 'no-events'}) } catch (exception) { t.equal('Initial dependencies need to be present to stun', exception.message) } })