Merge branch 'develop' of ssh://ognproject.evlt.uma.es:21987/opengnsys/oggui into develop
testing/ogGui-multibranch/pipeline/head There was a failure building this commit
Details
testing/ogGui-multibranch/pipeline/head There was a failure building this commit
Details
commit
d1bf12dd6a
|
@ -56,7 +56,7 @@ describe('LoginComponent', () => {
|
||||||
|
|
||||||
it('should call onLogin and navigate on successful login', () => {
|
it('should call onLogin and navigate on successful login', () => {
|
||||||
const mockRouter = spyOn(component['router'], 'navigateByUrl');
|
const mockRouter = spyOn(component['router'], 'navigateByUrl');
|
||||||
const mockHttp = spyOn(component['http'], 'post').and.returnValue(of({ token: '123', refreshToken: '456' }));
|
const mockHttp = spyOn(component['http'], 'post').and.returnValue(of({ token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c', refreshToken: '456' }));
|
||||||
|
|
||||||
component.loginObj.username = 'testUser';
|
component.loginObj.username = 'testUser';
|
||||||
component.loginObj.password = 'testPass';
|
component.loginObj.password = 'testPass';
|
||||||
|
|
Loading…
Reference in New Issue