Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Feb 15, 2024
1 parent 70c7707 commit ed1f989
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/verifyFrame.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.]`,
)
})
2 changes: 1 addition & 1 deletion src/utils/verifyFrame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}.`)
}

0 comments on commit ed1f989

Please sign in to comment.