[MIGRATION] - Fixing failing migrated tests

This commit is contained in:
VitoAlbano
2024-11-14 23:34:18 +00:00
committed by VitoAlbano
parent da2608b2d4
commit 8a73e46095
3 changed files with 47 additions and 5 deletions

View File

@@ -64,13 +64,11 @@ describe('Auth', () => {
assert.equal(data, 'TICKET_4479f4d3bb155195879bfbb8d5206f433488a1b1');
});
it('should return an error if wrong credential are used 403 the login fails', (done) => {
it('should return an error if wrong credential are used 403 the login fails', async () => {
authResponseEcmMock.get403Response();
alfrescoJsApi.login('wrong', 'name').then(NOOP, (error: ErrorResponse) => {
assert.equal(error.status, 403);
done();
});
const error = await alfrescoJsApi.login('wrong', 'name');
assert.equal(error.status, 403);
});
});