Skip to content

Commit fda78a1

Browse files
authored
Fix lint errors.
1 parent 970728c commit fda78a1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

spec/update-process-env-spec.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
updateProcessEnv,
77
shouldGetEnvFromShell
88
} from '../src/update-process-env';
9-
import dedent from 'dedent';
109
import mockSpawn from 'mock-spawn';
1110
const temp = require('temp').track();
1211

@@ -264,7 +263,10 @@ describe('updateProcessEnv(launchEnv)', function() {
264263
await updateProcessEnv(process.env);
265264
expect(spawn.calls.length).toBe(1);
266265
expect(spawn.calls[0].command).toBe('/my/custom/bash');
267-
expect(spawn.calls[0].args).toEqual(['-ilc', 'command awk \'BEGIN{for(v in ENVIRON) printf("%s=%s%c", v, ENVIRON[v], 0)}\'']);
266+
expect(spawn.calls[0].args).toEqual([
267+
'-ilc',
268+
'command awk \'BEGIN{for(v in ENVIRON) printf("%s=%s%c", v, ENVIRON[v], 0)}\''
269+
]);
268270
expect(process.env).toEqual({
269271
FOO: 'BAR=BAZ=QUUX',
270272
'MULTILINE\nNAME': 'multiline\nvalue',
@@ -292,7 +294,10 @@ describe('updateProcessEnv(launchEnv)', function() {
292294
await updateProcessEnv(process.env);
293295
expect(spawn.calls.length).toBe(1);
294296
expect(spawn.calls[0].command).toBe('/my/custom/bash');
295-
expect(spawn.calls[0].args).toEqual(['-ilc', 'command awk \'BEGIN{for(v in ENVIRON) printf("%s=%s%c", v, ENVIRON[v], 0)}\'']);
297+
expect(spawn.calls[0].args).toEqual([
298+
'-ilc',
299+
'command awk \'BEGIN{for(v in ENVIRON) printf("%s=%s%c", v, ENVIRON[v], 0)}\''
300+
]);
296301
expect(process.env).toEqual({
297302
FOO: 'BAR=BAZ=QUUX',
298303
'MULTILINE\nNAME': 'multiline\nvalue',

0 commit comments

Comments
 (0)