0
0
Fork 0
This commit is contained in:
Javier Segarra 2024-04-23 08:03:09 +02:00
parent 6018d51642
commit 04fe9330d4
1 changed files with 11 additions and 3 deletions

View File

@ -96,7 +96,11 @@ describe('session', () => {
const expectedTokenMultimedia = 'mySessionTokenMultimedia';
const keepLogin = false;
await session.login(expectedToken,expectedTokenMultimedia, keepLogin);
await session.login({
token: expectedToken,
tokenMultimedia: expectedTokenMultimedia,
keepLogin,
});
const roles = state.getRoles();
const localToken = localStorage.getItem('token');
@ -119,7 +123,11 @@ describe('session', () => {
const expectedTokenMultimedia = 'myLocalTokenMultimedia';
const keepLogin = true;
await session.login(expectedToken, expectedTokenMultimedia, keepLogin);
await session.login({
token: expectedToken,
tokenMultimedia: expectedTokenMultimedia,
keepLogin,
});
const roles = state.getRoles();
const localToken = localStorage.getItem('token');