mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-2904] Search - redirect breaks application (#3268)
* set navigation commands over plain string * fix test * lint
This commit is contained in:
committed by
Eugenio Romano
parent
c90ad3f875
commit
d456b3cba1
@@ -110,12 +110,12 @@ describe('LoginComponent', () => {
|
||||
spyOn(authService, 'login').and.returnValue(Observable.of({ type: 'type', ticket: 'ticket'}));
|
||||
const redirect = '/home';
|
||||
component.successRoute = redirect;
|
||||
authService.setRedirectUrl({ provider: 'ECM', url: 'redirect-url' } );
|
||||
authService.setRedirect({ provider: 'ECM', navigation: ['some-route'] } );
|
||||
|
||||
spyOn(router, 'navigate');
|
||||
|
||||
loginWithCredentials('fake-username', 'fake-password');
|
||||
expect(router.navigate).toHaveBeenCalledWith(['redirect-url']);
|
||||
expect(router.navigate).toHaveBeenCalledWith(['some-route']);
|
||||
});
|
||||
|
||||
it('should update user preferences upon login', async(() => {
|
||||
|
Reference in New Issue
Block a user