diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/app/vnfs/userlogin-form/userlogin-form.component.spec.ts | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/app/vnfs/userlogin-form/userlogin-form.component.spec.ts b/src/app/vnfs/userlogin-form/userlogin-form.component.spec.ts index 16863a4..ea97439 100644 --- a/src/app/vnfs/userlogin-form/userlogin-form.component.spec.ts +++ b/src/app/vnfs/userlogin-form/userlogin-form.component.spec.ts @@ -95,11 +95,12 @@ describe('userloginFormComponent', () => { component.getData(); const url = spy.calls.first().args[0]; - - expect(url.length).toBe(2); - expect(url[0]).toEqual('vnfs'); - - expect(url[1]).toEqual('list'); + // return url is set to '/home' in mockActiveRoute. + expect(url.length).toBe(5); + expect(url[0]).toEqual('/'); + expect(url[1]).toEqual('h'); + expect(localStorage['userId']).toBe('test Usr'); })); }); + |