Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Oct 18, 2023
1 parent dcabd6d commit 07ee005
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/mdx/test/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -999,10 +999,10 @@ test('@mdx-js/mdx: compile', async function (t) {
const exception = /** @type {Error} */ (error)
const match = /at Component \(([^)]+)\)/.exec(String(exception.stack))
// To do: check if this works on windows.
const place = base.pathname + 'unknown.mdx:2:3'
return place === match?.[1]
},
'should support source maps'
const expected = base.pathname + 'unknown.mdx:2:3'
const actual = match?.[1].split(/\\|\//g).join('/')
return actual === expected
}
)

await fs.unlink(url)
Expand Down

0 comments on commit 07ee005

Please sign in to comment.