UNPKG

majic

Version:

A micro javascript/node.js ioc dependency injection container

13 lines (11 loc) 382 B
var approotpath = require('app-root-path'); var inject = require(`${approotpath}/index.js`).test(); var expect = require('chai').expect; describe('alias', () => { it('should alias bluebird to q', inject((bluebird, q) => { expect(q).to.equal(bluebird); })); it('should alias lodash to _', inject((lodash, _) => { expect(_).to.equal(lodash); })); });