Skip to content

Commit 2a243ce

Browse files
committed
authSession.info is not defined as a getter property on that object
1 parent 9301716 commit 2a243ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/unit/login/login.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ describe('getUserRoles', () => {
2020
})
2121

2222
it('returns [] and does not load preferences when current user is missing', async () => {
23-
vi.spyOn(authSession, 'info', 'get').mockReturnValue({
23+
authSession.info = {
2424
isLoggedIn: true,
2525
webId: 'https://alice.example.com/profile/card#me',
2626
sessionId: 'test-session'
27-
})
27+
}
2828

2929
const currentUserSpy = vi
3030
.spyOn(authn, 'currentUser')

0 commit comments

Comments
 (0)