Skip to content

Commit f99853f

Browse files
niiksergiou87
andcommitted
Fix test
Co-Authored-By: Sergio Padrino <[email protected]>
1 parent e17797f commit f99853f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/desktop-trampoline.test.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ describe('desktop-trampoline', () => {
5454
const outputArguments = output.slice(1, 2)
5555
expect(outputArguments).toStrictEqual(['baz'])
5656
// output[2] is the number of env variables
57-
const outputEnv = output.slice(3)
57+
const envc = parseInt(output[2])
58+
const outputEnv = output.slice(3, 3 + envc)
5859
expect(outputEnv).toHaveLength(1)
5960
expect(outputEnv).toContain('DESKTOP_TRAMPOLINE_TOKEN=123456')
6061

0 commit comments

Comments
 (0)