Skip to content

Commit

Permalink
test: Windows has additional newline marker
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Oct 11, 2019
1 parent fff6f04 commit 95441e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/parallel/test-source-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,11 @@ function nextdir() {
'istanbul-throw.js',
coverageDirectory
);
assert.deepStrictEqual(sourceMap.lineLengths, [1085, 30, 184, 648, 0]);
if (common.isWindows) {
assert.deepStrictEqual(sourceMap.lineLengths, [1087, 301, 185, 649, 0]);
} else {
assert.deepStrictEqual(sourceMap.lineLengths, [1085, 30, 184, 648, 0]);
}
}

function getSourceMapFromCache(fixtureFile, coverageDirectory) {
Expand Down

0 comments on commit 95441e5

Please sign in to comment.