Skip to content

Commit a1589b2

Browse files
committed
try to fix windows run
1 parent 1f6b956 commit a1589b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/instanceof.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ test('ensure that instanceof works accross different installations of the fastif
135135
const { createError } = require('fastify-error')
136136
137137
function normalizePath (path) {
138-
const normalizedPath = path.slice(path.indexOf("fastify-error-instanceof-test-") - 1)
138+
const normalizedPath = path.slice(path.indexOf("fastify-error-instanceof-test-") - (process.platform === 'win32' ? 2 : 1))
139139
return normalizedPath
140140
}
141141

0 commit comments

Comments
 (0)