Skip to content

Commit 6afb633

Browse files
committed
Fix tests
1 parent 2e313a5 commit 6afb633

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

index2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ const { doNotCloseOnExit, execvp } = require('./index.js')
33
doNotCloseOnExit(process.stdin.fd)
44
doNotCloseOnExit(process.stdout.fd)
55
doNotCloseOnExit(process.stderr.fd)
6-
execvp('ls', ['.'])
6+
execvp('ls', [process.argv0, 'tests'])

tests/index.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ const { execSync } = require('node:child_process')
22

33
describe('exec', () => {
44
test('it should work', () => {
5-
expect(execSync('node index2.js').toString()).toBe('Hello\n')
5+
expect(execSync('node index2.js').toString()).toBe('index.spec.js\n')
66
})
77
})

0 commit comments

Comments
 (0)