mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2200] fixed redirectUrl check (#2886)
This commit is contained in:
@@ -270,6 +270,12 @@ describe('AuthenticationService', () => {
|
||||
|
||||
expect(authService.getRedirectUrl(preferences.authType)).toBeNull();
|
||||
});
|
||||
|
||||
it('[ECM] should return null as redirectUrl when redirectUrl field is not set', () => {
|
||||
authService.setRedirectUrl( null );
|
||||
|
||||
expect(authService.getRedirectUrl(preferences.authType)).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
describe('when the setting is BPM', () => {
|
||||
@@ -391,6 +397,12 @@ describe('AuthenticationService', () => {
|
||||
|
||||
expect(authService.getRedirectUrl(preferences.authType)).toBeNull();
|
||||
});
|
||||
|
||||
it('[BPM] should return null as redirectUrl when redirectUrl field is not set', () => {
|
||||
authService.setRedirectUrl( null );
|
||||
|
||||
expect(authService.getRedirectUrl(preferences.authType)).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
describe('when the setting is both ECM and BPM ', () => {
|
||||
@@ -503,6 +515,12 @@ describe('AuthenticationService', () => {
|
||||
|
||||
expect(authService.getRedirectUrl(preferences.authType)).toBe('some-url');
|
||||
});
|
||||
|
||||
it('[ALL] should return null as redirectUrl when redirectUrl field is not set', () => {
|
||||
authService.setRedirectUrl( null );
|
||||
|
||||
expect(authService.getRedirectUrl(preferences.authType)).toBeNull();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user