Skip to content

Commit 8d76e2c

Browse files
committed
fix unit test
1 parent 4d5f63d commit 8d76e2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/unit/kratos-session-edge.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe('isKratosSessionActive', () => {
4141
it('calls whoami with the request cookie and returns true for an active session', async () => {
4242
const fetchMock = vi.fn().mockResolvedValue({
4343
ok: true,
44-
json: async () => ({ active: true }),
44+
json: async () => ({ active: true, identity: { external_id: 'ext-1' } }),
4545
})
4646
vi.stubGlobal('fetch', fetchMock)
4747

0 commit comments

Comments
 (0)