Skip to content

Commit

Permalink
fix path separators for ci on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Jul 25, 2020
1 parent 06f738a commit a45431e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/verify-source-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async function check(kind, testCase, toSearch, flags) {
const outColumn = outLines[outLines.length - 1].length

const { source, line, column } = map.originalPositionFor({ line: outLine, column: outColumn })
const expected = JSON.stringify({ source: path.join(relativeTo, inSource), line: inLine, column: inColumn })
const expected = JSON.stringify({ source: path.join(relativeTo, inSource).replace(/\\/g, '/'), line: inLine, column: inColumn })
const observed = JSON.stringify({ source, line, column })
recordCheck(expected === observed, `expected: ${expected} observed: ${observed}`)
}
Expand Down

0 comments on commit a45431e

Please sign in to comment.