Fix an issue where the combination of deepmerge and webpack breaks tests

This commit is contained in:
Yuya Ochiai
2017-10-17 00:04:38 +09:00
parent d347b67395
commit ab3bd97a52
4 changed files with 19 additions and 5 deletions

View File

@@ -2,6 +2,14 @@ const settings = require('../../src/common/settings');
const deepmerge = require('deepmerge');
describe('common/settings.js', () => {
before(() => {
process.env.TEST = 1;
});
after(() => {
delete process.env.TEST;
});
it('should upgrade v0 config file', () => {
const v0Config = {
url: 'https://example.com/team'