7383-testToMaster #370
|
@ -96,7 +96,11 @@ describe('session', () => {
|
||||||
const expectedTokenMultimedia = 'mySessionTokenMultimedia';
|
const expectedTokenMultimedia = 'mySessionTokenMultimedia';
|
||||||
const keepLogin = false;
|
const keepLogin = false;
|
||||||
|
|
||||||
await session.login(expectedToken,expectedTokenMultimedia, keepLogin);
|
await session.login({
|
||||||
|
token: expectedToken,
|
||||||
|
tokenMultimedia: expectedTokenMultimedia,
|
||||||
|
keepLogin,
|
||||||
|
});
|
||||||
|
|
||||||
const roles = state.getRoles();
|
const roles = state.getRoles();
|
||||||
const localToken = localStorage.getItem('token');
|
const localToken = localStorage.getItem('token');
|
||||||
|
@ -119,7 +123,11 @@ describe('session', () => {
|
||||||
const expectedTokenMultimedia = 'myLocalTokenMultimedia';
|
const expectedTokenMultimedia = 'myLocalTokenMultimedia';
|
||||||
const keepLogin = true;
|
const keepLogin = true;
|
||||||
|
|
||||||
await session.login(expectedToken, expectedTokenMultimedia, keepLogin);
|
await session.login({
|
||||||
|
token: expectedToken,
|
||||||
|
tokenMultimedia: expectedTokenMultimedia,
|
||||||
|
keepLogin,
|
||||||
|
});
|
||||||
|
|
||||||
const roles = state.getRoles();
|
const roles = state.getRoles();
|
||||||
const localToken = localStorage.getItem('token');
|
const localToken = localStorage.getItem('token');
|
||||||
|
|
Loading…
Reference in New Issue