linagora-rse
Version:
27 lines (19 loc) • 604 B
JavaScript
;
var expect = require('chai').expect;
describe('The Core module', function() {
var core = null;
beforeEach(function() {
core = this.helpers.requireBackend('core');
});
it('should contains a config property', function() {
expect(core.config).to.exist;
expect(core.config).to.be.a.function;
});
it('should contains a logger property', function() {
expect(core.logger).to.exist;
expect(core.logger).to.be.a.function;
});
it('should read/set the NODE_ENV environment variable', function() {
expect(process.env.NODE_ENV).to.equal('test');
});
});