From 3591e3c7f2249eed1415a68aefcc9945116bef5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Wed, 5 Feb 2025 11:02:28 +0100 Subject: [PATCH] Update basic.test.ts --- test/basic.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/basic.test.ts b/test/basic.test.ts index d5e7311e..39380c67 100644 --- a/test/basic.test.ts +++ b/test/basic.test.ts @@ -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') }) })