We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f6b956 commit a1589b2Copy full SHA for a1589b2
test/instanceof.test.js
@@ -135,7 +135,7 @@ test('ensure that instanceof works accross different installations of the fastif
135
const { createError } = require('fastify-error')
136
137
function normalizePath (path) {
138
- const normalizedPath = path.slice(path.indexOf("fastify-error-instanceof-test-") - 1)
+ const normalizedPath = path.slice(path.indexOf("fastify-error-instanceof-test-") - (process.platform === 'win32' ? 2 : 1))
139
return normalizedPath
140
}
141
0 commit comments