lux-framework
Version:
Build scalable, Node.js-powered REST APIs with almost no code.
26 lines (19 loc) • 478 B
JavaScript
/* @flow */
import { expect } from 'chai';
import { afterEach, test } from 'mocha';
import * as env from '../env';
import setEnv from '../../../test/utils/set-env';
afterEach(() => {
setEnv('test');
});
test('isDevelopment()', () => {
setEnv('development');
expect(env.isDevelopment()).to.be.true;
});
test('isProduction()', () => {
setEnv('production');
expect(env.isProduction()).to.be.true;
});
test('isTest()', () => {
expect(env.isTest()).to.be.true;
});