From ed1f9896d4cc602dd0d8f651db1bea674e8518fc Mon Sep 17 00:00:00 2001 From: "moxey.eth" Date: Fri, 16 Feb 2024 10:25:24 +1100 Subject: [PATCH] chore: update test --- src/utils/verifyFrame.test.ts | 2 +- src/utils/verifyFrame.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/verifyFrame.test.ts b/src/utils/verifyFrame.test.ts index 4238d676..dddcc47d 100644 --- a/src/utils/verifyFrame.test.ts +++ b/src/utils/verifyFrame.test.ts @@ -36,6 +36,6 @@ test('invalid url', async () => { url: 'https://test-farc6.vercel.app/foo', }), ).rejects.toMatchInlineSnapshot( - '[Error: Invalid frame url: https://test-farc6.vercel.app/api]', + `[Error: Invalid frame url: https://test-farc6.vercel.app/api. Expected: https://test-farc6.vercel.app/foo.]`, ) }) diff --git a/src/utils/verifyFrame.ts b/src/utils/verifyFrame.ts index 035b77f4..26c1c7ea 100644 --- a/src/utils/verifyFrame.ts +++ b/src/utils/verifyFrame.ts @@ -30,5 +30,5 @@ export async function verifyFrame({ throw new Error(`message is invalid. ${response.details}`) if (!frameUrl?.startsWith(url)) - throw new Error(`Invalid frame url: ${frameUrl}`) + throw new Error(`Invalid frame url: ${frameUrl}. Expected: ${url}.`) }