mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
AAE-30882 Remove superagent for fetch (#11856)
* [AAE-30882] - Remove superagent for fetch * [AAE-30882] - Fixing comments * [AAE-30882] - fixde failing unit tests * [AAE-30882] - fixde failing unit tests * [AAE-30882] - fixd sonarcloud comment
This commit is contained in:
@@ -419,24 +419,20 @@ describe('Auth', () => {
|
||||
|
||||
it('should fail if only ECM fail', (done) => {
|
||||
authResponseBpmMock.get200Response();
|
||||
authResponseEcmMock.get401Response();
|
||||
authResponseEcmMock.get401ResponseAdminCredentials();
|
||||
|
||||
alfrescoJsApi.login('admin', 'admin').then(NOOP, () => {
|
||||
done();
|
||||
});
|
||||
|
||||
authResponseEcmMock.cleanAll();
|
||||
});
|
||||
|
||||
it('should fail if only BPM fail', (done) => {
|
||||
authResponseBpmMock.get401Response();
|
||||
authResponseBpmMock.get401ResponseAdminCredentials();
|
||||
authResponseEcmMock.get201Response();
|
||||
|
||||
alfrescoJsApi.login('admin', 'admin').then(NOOP, () => {
|
||||
done();
|
||||
});
|
||||
|
||||
authResponseBpmMock.cleanAll();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user