mirror of
https://github.com/wassname/react-webpack-template.git
synced 2026-07-13 17:45:10 +08:00
#1 -- added support to import app configuration based on --env
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/*eslint-env node, mocha */
|
||||
/*global expect */
|
||||
/*eslint no-console: 0*/
|
||||
'use strict';
|
||||
|
||||
import config from 'config';
|
||||
|
||||
describe('appEnvConfigTests', () => {
|
||||
it('should load app config file depending on current --env', () => {
|
||||
expect(config.appEnv).to.equal('test');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user