Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
test(stateConfig): remove unused mock
Browse files Browse the repository at this point in the history
  • Loading branch information
anescobar1991 committed Mar 13, 2020
1 parent 548b63e commit 6c419d4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions __tests__/server/utils/stateConfig.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,12 @@ describe('stateConfig methods', () => {
let restoreModuleStateConfig;
let backupModuleStateConfig;
let fs;
let ip;

const originalEnvVars = process.env;

const reloadMocks = () => {
fs = require('fs');
ip = require('ip');
jest.spyOn(process, 'cwd').mockImplementation(() => 'fake/path/');
ip.address.mockImplementation(() => '127.0.0.1');
fs.existsSync.mockImplementation(() => false);
process.env.ONE_CONFIG_ENV = 'qa';
provideStateConfig = {
Expand Down

0 comments on commit 6c419d4

Please sign in to comment.