Skip to content

Commit 700c185

Browse files
committed
test: try to fix coverage for windows
1 parent 4542293 commit 700c185

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,9 @@ const checkPath = (path, originalPath, doThrow) => {
585585
const isNotRelative = path => REGEX_TEST_INVALID_PATH.test(path)
586586

587587
checkPath.isNotRelative = isNotRelative
588+
589+
// On windows, the following function will be replaced
590+
/* istanbul ignore next */
588591
checkPath.convert = p => p
589592

590593

@@ -741,7 +744,7 @@ factory.isPathValid = isPathValid
741744

742745
// Windows
743746
// --------------------------------------------------------------
744-
/* istanbul ignore if */
747+
/* istanbul ignore next */
745748
if (
746749
// Detect `process` so that it can run in browsers.
747750
typeof process !== 'undefined'

0 commit comments

Comments
 (0)