Skip to content

Commit 14c80d4

Browse files
committed
test: update Windows platform check in snapshot transform test
1 parent 70b8d4c commit 14c80d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-assert-snapshot-transform-project-root.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const snapshot = require('../common/assertSnapshot');
3232
const fileUrlWithSpace = pathToFileURL(path.join(projectRoot, 'spaced dir')).href;
3333
assert.strictEqual(stripProjectRoot(fileUrlWithSpace), 'file:///spaced%20dir');
3434

35-
if (process.platform === 'win32') {
35+
if (common.isWindows) {
3636
const projectRootPosix = projectRoot.replaceAll(path.win32.sep, path.posix.sep);
3737

3838
assert.strictEqual(

0 commit comments

Comments
 (0)