do not unlink config file in test mode

this was incredibly hard to debug
This commit is contained in:
Girish Ramakrishnan
2017-02-06 22:18:20 -08:00
parent 8dc929f0ff
commit 8f388c86a6
4 changed files with 7 additions and 13 deletions

View File

@@ -1,4 +1,3 @@
/* jslint node:true */
/* global it:false */
/* global describe:false */
/* global after:false */
@@ -6,19 +5,15 @@
'use strict';
var constants = require('../constants.js'),
var config = require('../config.js'),
constants = require('../constants.js'),
expect = require('expect.js'),
fs = require('fs'),
path = require('path'),
paths = require('../paths.js'),
safe = require('safetydance');
var config = null;
path = require('path');
describe('config', function () {
before(function () {
delete require.cache[require.resolve('../config.js')];
config = require('../config.js');
config._reset();
});
after(function () {