Skip to content

Commit

Permalink
Update get-spawn-opts.spec.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavohenke committed Feb 23, 2020
1 parent 77ed1e7 commit 0e0f8b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/get-spawn-opts.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ it('sets stdio to inherit when raw', () => {

it('merges FORCE_COLOR into env vars if color supported', () => {
const process = { env: { foo: 'bar' } };
expect(getSpawnOpts({ process, colorSupport: false }).env).toBeUndefined();
expect(getSpawnOpts({ process, colorSupport: false }).env).toEqual(process.env);
expect(getSpawnOpts({ process, colorSupport: { level: 1 } }).env).toEqual({
FORCE_COLOR: 1,
foo: 'bar'
Expand Down

0 comments on commit 0e0f8b3

Please sign in to comment.