fix(tests): removing unused mock-fs library which caused tests to fail (#1751)

This commit is contained in:
Liran Tal
2017-04-08 11:49:38 +03:00
committed by GitHub
parent 817c4e3cdf
commit e596375b62
2 changed files with 0 additions and 4 deletions

View File

@@ -9,7 +9,6 @@ var _ = require('lodash'),
User = mongoose.model('User'),
path = require('path'),
fs = require('fs'),
mock = require('mock-fs'),
request = require('supertest'),
config = require(path.resolve('./config/config')),
logger = require(path.resolve('./config/lib/logger')),
@@ -421,12 +420,10 @@ describe('Configuration Tests:', function () {
beforeEach(function () {
originalLogConfig = _.clone(config.log, true);
mock();
});
afterEach(function () {
config.log = originalLogConfig;
mock.restore();
});
it('should retrieve the log format from the logger configuration', function () {

View File

@@ -111,7 +111,6 @@
"karma-ng-html2js-preprocessor": "~1.0.0",
"karma-phantomjs-launcher": "~1.0.0",
"lcov-result-merger": "~1.2.0",
"mock-fs": "~3.12.0",
"run-sequence": "~1.2.2",
"semver": "~5.3.0",
"should": "~11.1.0",