mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[AAE-5139] User name style and Discovery service initialization fix (#7010)
* [AAE-5139] User name style fix and Discovery serice fixed * * fixed unit test * * fixed test and us latest js-api events * * tests fixed * * update js api * * fixed test and lint
This commit is contained in:
@@ -220,7 +220,7 @@ describe('Discovery Api Service', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('Oauth', () => {
|
||||
describe('OnLogin Event', () => {
|
||||
setupTestBed({
|
||||
imports: [
|
||||
TranslateModule.forRoot(),
|
||||
@@ -234,7 +234,7 @@ describe('Discovery Api Service', () => {
|
||||
authenticationService = TestBed.inject(AuthenticationService);
|
||||
});
|
||||
|
||||
it('Should retrieve the info about the product for Oauth', done => {
|
||||
it('Should retrieve the info about the product on login/refresh the application', done => {
|
||||
spyOn(apiService.getInstance(), 'isEcmLoggedIn').and.returnValue(true);
|
||||
spyOn(service, 'getEcmProductInfo').and.returnValue(of(new EcmProductVersionModel(fakeEcmDiscoveryResponse)));
|
||||
|
||||
@@ -252,7 +252,7 @@ describe('Discovery Api Service', () => {
|
||||
done();
|
||||
}
|
||||
);
|
||||
authenticationService.onTokenExchange.next('<token>');
|
||||
authenticationService.onLogin.next('<token>');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user