Skip to content

Commit b9cb633

Browse files
committed
fix(tests): use path.sep instead of "/"
1 parent cff9595 commit b9cb633

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

__tests__/commands.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ describe('electron:build', () => {
321321
test('Adds mock legacy assets file for index', async () => {
322322
await runCommand('electron:build')
323323
expect(fs.writeFileSync).toBeCalledWith(
324-
'dist_electron/bundled/legacy-assets-index.html.json',
324+
`dist_electron${path.sep}bundled${path.sep}legacy-assets-index.html.json`,
325325
'[]'
326326
)
327327
})
@@ -337,11 +337,11 @@ describe('electron:build', () => {
337337
}
338338
})
339339
expect(fs.writeFileSync).toBeCalledWith(
340-
'dist_electron/bundled/legacy-assets-index.html.json',
340+
`dist_electron${path.sep}bundled${path.sep}legacy-assets-index.html.json`,
341341
'[]'
342342
)
343343
expect(fs.writeFileSync).toBeCalledWith(
344-
'dist_electron/bundled/legacy-assets-subpage.html.json',
344+
`dist_electron${path.sep}bundled${path.sep}legacy-assets-subpage.html.json`,
345345
'[]'
346346
)
347347
}

0 commit comments

Comments
 (0)