Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: Windows has additional newline marker
  • Loading branch information
bcoe committed Oct 11, 2019
commit 95441e5f7274ef6f37941174dde8e0103990f2b4
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