Skip to content

Commit

Permalink
feat: refactor
Browse files Browse the repository at this point in the history
stylistic update
  • Loading branch information
jamesgeorge007 committed Sep 29, 2019
1 parent dee2884 commit 4858fde
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/env/array/array-env.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ const execa = require('execa');
const { sync: spawnSync } = execa;
const { run } = require('../../utils/test-utils');

const devFile = path.join(__dirname, './bin/dev.js');
const prodFile = path.join(__dirname, './bin/prod.js');

describe('env array', () => {
it('is able to set two different environments for an array configuration', () => {
run(__dirname);
const devFile = path.join(__dirname, './bin/dev.js');
const prodFile = path.join(__dirname, './bin/prod.js');

const devScript = spawnSync('node', [devFile]);
const prodScript = spawnSync('node', [prodFile]);
Expand All @@ -21,8 +22,6 @@ describe('env array', () => {

it('is able to compile sucessfully with prod flag', () => {
run(__dirname, ['--prod']);
const devFile = path.join(__dirname, './bin/dev.js');
const prodFile = path.join(__dirname, './bin/prod.js');

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

0 comments on commit 4858fde

Please sign in to comment.