[ACS-9768] remove deprecated methods from auth related components (#11031)

* [ACS-9768] remove deprecated methods from auth related components

* [ACS-9768] remove deprecated method, adjust unit tests

* [ACS-9768] fix sonar cloud issues

* [ACS-9768] fix auth mocks

* [ACS-9768] fix sonar cloud alerts

* [ACS-9768] update method name in docs
This commit is contained in:
Grzegorz Jaśkowski
2025-09-01 11:28:41 +02:00
committed by GitHub
parent dabab63f78
commit 04d488b8ea
23 changed files with 51 additions and 253 deletions
@@ -36,7 +36,7 @@ describe('AppListCloudComponent', () => {
oauth2Auth: {
callCustomApi: () => Promise.resolve(fakeApplicationInstance)
},
isEcmLoggedIn: () => false,
isLoggedIn: () => false,
reply: jasmine.createSpy('reply')
};
@@ -69,7 +69,7 @@ const mockOauth2Auth: any = {
oauth2Auth: {
callCustomApi: () => Promise.resolve()
},
isEcmLoggedIn: jasmine.createSpy('isEcmLoggedIn'),
isLoggedIn: jasmine.createSpy('isLoggedIn'),
reply: jasmine.createSpy('reply')
};
@@ -83,7 +83,7 @@ describe('EditProcessFilterCloudComponent', () => {
oauth2Auth: {
callCustomApi: () => Promise.resolve(fakeApplicationInstance)
},
isEcmLoggedIn: () => false,
isLoggedIn: () => false,
reply: jasmine.createSpy('reply')
};
@@ -23,7 +23,7 @@ export const mockAlfrescoApi: any = {
oauth2Auth: {
callCustomApi: () => Promise.resolve(fakeApplicationInstance)
},
isEcmLoggedIn: () => false,
isLoggedIn: () => false,
reply: jasmine.createSpy('reply')
};
@@ -53,7 +53,7 @@ describe('TaskHeaderCloudComponent', () => {
oauth2Auth: {
callCustomApi: () => Promise.resolve({})
},
isEcmLoggedIn: () => false,
isLoggedIn: () => false,
reply: jasmine.createSpy('reply')
};