Skip to content

Commit

Permalink
Update basic.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Feb 5, 2025
1 parent f6cd01a commit 3591e3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ describe('ssr', async () => {
it('returns an empty session', async () => {
// Get response to a server-rendered page with `$fetch`.
const session = await $fetch('/api/_auth/session')
expect(session).toStrictEqual({})
// Session should be an object with an `id` property
expect(session).toBeInstanceOf(Object)
expect(session).toHaveProperty('id')
})
})

0 comments on commit 3591e3c

Please sign in to comment.