Skip to content

Commit

Permalink
Fix createFileResults() on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsnowcurrently committed Sep 6, 2019
1 parent e58922a commit 32fbe09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/testing/helpers-nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function createFileResults(
if (!xmlName) {
xmlName = filename
.replace(/\.[^.]+$/, '')
.replace(RegExp(path.sep), '.')
.replace(/[\\\/]/, '.')
.replace(/^[.\\\/]*/, '');
}
return {
Expand Down

0 comments on commit 32fbe09

Please sign in to comment.