From 0c654f3e47c5d605d48d4cfebe47766be4ab96b5 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Wed, 22 Jul 2020 12:01:15 +0530 Subject: [PATCH] chore: remove test cases consuming --dev and --prod flags --- test/env/array/array-env.test.js | 10 ---------- test/env/object/object-env.test.js | 6 ------ 2 files changed, 16 deletions(-) diff --git a/test/env/array/array-env.test.js b/test/env/array/array-env.test.js index e969e5c1d82..a9571de67fc 100644 --- a/test/env/array/array-env.test.js +++ b/test/env/array/array-env.test.js @@ -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(''); - }); }); diff --git a/test/env/object/object-env.test.js b/test/env/object/object-env.test.js index 9fd59b0f6b3..124aadc5b04 100644 --- a/test/env/object/object-env.test.js +++ b/test/env/object/object-env.test.js @@ -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'); - }); });