Skip to content

Commit

Permalink
chore: remove test cases consuming --dev and --prod flags
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Jul 23, 2020
1 parent 312322e commit 0c654f3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
10 changes: 0 additions & 10 deletions test/env/array/array-env.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,4 @@ describe('env array', () => {
expect(devScript.stdout).toBe('environment is development');
expect(prodScript.stdout).toBe('environment is production');
});

it('is able to compile successfully with prod flag', () => {
run(__dirname, ['--prod']);

const devScript = spawnSync('node', [devFile]);
const prodScript = spawnSync('node', [prodFile]);

expect(devScript.stderr).toBe('');
expect(prodScript.stderr).toBe('');
});
});
6 changes: 0 additions & 6 deletions test/env/object/object-env.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,4 @@ describe('env object', () => {
const bundledScript = spawnSync('node', [executable]);
expect(bundledScript.stdout).toBe('environment is development');
});
it('is able to compile successfully with dev flag', () => {
run(__dirname, ['--dev']);
const executable = path.join(__dirname, './bin/main.js');
const bundledScript = spawnSync('node', [executable]);
expect(bundledScript.stdout).toBe('environment is development');
});
});

0 comments on commit 0c654f3

Please sign in to comment.