Skip to content

Commit 6989e6a

Browse files
committed
fix const tests
1 parent 449166b commit 6989e6a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/constants.test.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ test('constants with MOUNT starting with c:', async function (t) {
8484
t.teardown(teardown)
8585

8686
const constants = require('../constants')
87-
t.ok(constants.MOUNT === pathToFileURL('c:/custom/mount').href)
87+
if (isWindows) {
88+
t.ok(constants.MOUNT === pathToFileURL('c:/custom/mount').href)
89+
} else {
90+
t.ok(constants.MOUNT === 'file:///c:/custom/mount')
91+
}
8892
})
8993

9094
test('constants with MOUNT starting with file:', { skip: isWindows }, async function (t) {

0 commit comments

Comments
 (0)