@house-agency/brewtils
Version:
The Brewery Node.js Utilities (brewtils)
20 lines (16 loc) • 472 B
JavaScript
const expect = require('chai').expect;
const exporter = require('../exporter');
describe('Exporter', () => {
it('shall export a function and an object', () => {
const func = function named_func () {};
const object = {
key: 'value'
};
const exported = exporter(
func,
object
);
expect(exported.named_func).to.equal(func);
expect(exported.key).to.equal('value');
});
});