Skip to content

Commit 59e74cf

Browse files
committed
fix test constanst
1 parent f320e2d commit 59e74cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/constants.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const { test } = require('brittle')
44
const { isWindows } = require('which-runtime')
5-
// TODO: fix tests for windows
5+
const { pathToFileURL } = require('url-file-url')
66

77
const dirname = __dirname
88
global.Pear = null
@@ -35,7 +35,7 @@ test('constants with CHECKOUT', async function (t) {
3535
t.ok(constants.CHECKOUT.fork === null)
3636
})
3737

38-
test('constants with default MOUNT', { skip: isWindows }, async function (t) {
38+
test('constants with default MOUNT', async function (t) {
3939
t.plan(1)
4040

4141
const rig = () => {
@@ -58,7 +58,7 @@ test('constants with default MOUNT', { skip: isWindows }, async function (t) {
5858
t.teardown(teardown)
5959

6060
const constants = require('../constants')
61-
t.ok(constants.MOUNT === `file://${dirname}`)
61+
t.ok(constants.MOUNT === pathToFileURL(dirname).href)
6262
})
6363

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

0 commit comments

Comments
 (0)