Skip to content

Commit 3e0ab1d

Browse files
Apply suggestions from code review
Co-authored-by: Joyee Cheung <[email protected]>
1 parent d2f5377 commit 3e0ab1d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/sea/test-build-sea-custom-argv0.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ const { spawnSyncAndAssert } = require('../common/child_process');
1616

1717
const fixturesDir = fixtures.path('sea', 'basic');
1818
const tempDir = tmpdir.path;
19-
19+
tmpdir.refresh();
2020
copyFileSync(
21-
resolve(fixturesDir, 'sea-config.json'),
22-
resolve(tempDir, 'sea-config.json'),
21+
fixtures.path('sea-config.json'),
22+
tmpdir.resolve('sea-config.json'),
2323
);
2424

2525
copyFileSync(
26-
resolve(fixturesDir, 'sea.js'),
27-
resolve(tempDir, 'sea.js'),
26+
fixtures.path('sea.js'),
27+
tmpdir.resolve('sea.js'),
2828
);
2929

3030
spawnSyncAndAssert(
3131
process.execPath,
32-
['--build-sea', resolve(tempDir, 'sea-config.json')], {
32+
['--build-sea', tmpdir.resolve('sea-config.json')], {
3333
cwd: tempDir,
3434
argv0: 'argv0',
3535
}, {

0 commit comments

Comments
 (0)