Skip to content

Commit

Permalink
test: fix breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Dec 13, 2024
1 parent 227391b commit d74d2b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/youch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test.group('Youch', () => {
test('convert error toJSON', async ({ assert }) => {
const parsedError = await new Youch().toJSON(new Error('Something went wrong'))
assert.equal(parsedError.message, 'Something went wrong')
assert.equal(parsedError.frames[0].lineNumber, 16)
assert.equal(parsedError.frames[0].lineNumber, 17)
})

test('apply parser to the error', async ({ assert }) => {
Expand All @@ -28,7 +28,7 @@ test.group('Youch', () => {

assert.equal(parsedError.message, 'Wrapped')
assert.equal((parsedError.cause as any).message, 'Something went wrong')
assert.equal(parsedError.frames[0].lineNumber, 24)
assert.equal(parsedError.frames[0].lineNumber, 25)
})

test('apply transformer to the error', async ({ assert }) => {
Expand Down

0 comments on commit d74d2b1

Please sign in to comment.