Skip to content

Commit f59e889

Browse files
committed
ignore the first character of testDirectoryPrefix in hope it fixes the issue
1 parent 8e55ffe commit f59e889

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/instanceof.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ test('ensure that instanceof works accross different installations of the fastif
9191
9292
function normalizePath (filePath) {
9393
filePath = path.normalize(filePath)
94-
filePath = filePath.slice(filePath.lastIndexOf('${testDirectoryPrefix}'))
94+
filePath = filePath.slice(filePath.lastIndexOf('${testDirectoryPrefix}') + 1)
9595
return filePath
9696
}
9797
@@ -141,7 +141,7 @@ test('ensure that instanceof works accross different installations of the fastif
141141
142142
function normalizePath (filePath) {
143143
filePath = path.normalize(filePath)
144-
filePath = filePath.slice(filePath.lastIndexOf('${testDirectoryPrefix}'))
144+
filePath = filePath.slice(filePath.lastIndexOf('${testDirectoryPrefix}') + 1)
145145
return filePath
146146
}
147147

0 commit comments

Comments
 (0)