From d74d2b1ddbd82964f2041cb2ac801866b9fee593 Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Fri, 13 Dec 2024 15:50:57 +0530 Subject: [PATCH] test: fix breaking tests --- tests/youch.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/youch.spec.ts b/tests/youch.spec.ts index cbedca1..63df607 100644 --- a/tests/youch.spec.ts +++ b/tests/youch.spec.ts @@ -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 }) => { @@ -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 }) => {