Skip to content

Commit

Permalink
Fix issues after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
alep85 committed Nov 3, 2023
1 parent cd87332 commit bd4a543
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class BasicAlfrescoAuthService extends BaseAuthenticationService {
*/
async executeLogin(username: string, password: string): Promise<any> {
if (!this.isCredentialValid(username) || !this.isCredentialValid(password)) {
return Promise.reject('missing username or password');
return Promise.reject(new Error('missing username or password'));
}

if (username) {
Expand All @@ -136,7 +136,7 @@ export class BasicAlfrescoAuthService extends BaseAuthenticationService {
} else if (this.isALLProvider()) {
return this.loginBPMECM(username, password);
} else {
return Promise.reject('Unknown configuration');
return Promise.reject(new Error('Unknown configuration'));
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ describe('Inject [LocalPreferenceCloudService] into the TaskFilterCloudService',
expect(res[2].status).toEqual('COMPLETED');
expect(getPreferencesSpy).toHaveBeenCalled();

const localData = JSON.parse(localStorage.getItem(`task-filters-${appName}-${identityUserMock.username}`));
const localData = JSON.parse(storageService.getItem(`task-filters-${appName}-${identityUserMock.username}`));
expect(localData.length).toEqual(3);

expect(localData[0].name).toEqual('ADF_CLOUD_TASK_FILTERS.MY_TASKS');
Expand Down

0 comments on commit bd4a543

Please sign in to comment.