Skip to content

Commit 51d40cf

Browse files
committed
fix test
1 parent a288ede commit 51d40cf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/unit/login/login.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ describe('getUserRoles', () => {
2121
it('returns [] and does not load preferences when current user is missing', async () => {
2222
const solidLogic = require('solid-logic')
2323

24+
solidLogic.authSession.info = {
25+
isLoggedIn: true,
26+
webId: 'https://alice.example.com/profile/card#me'
27+
}
28+
2429
const currentUserSpy = jest
2530
.spyOn(solidLogic.authn, 'currentUser')
2631
.mockReturnValue(null)

0 commit comments

Comments
 (0)