Fixes failing e2e test
This commit is contained in:
parent
7abbb1019a
commit
0b14a0e101
|
@ -5,7 +5,7 @@ import {MatIconModule} from '@angular/material/icon';
|
|||
import {MatMenuModule} from '@angular/material/menu';
|
||||
import {Router} from '@angular/router';
|
||||
import {RouterTestingModule} from '@angular/router/testing';
|
||||
import {ApiService, MockEnvironment, mockUser} from 'sartography-workflow-lib';
|
||||
import {ApiService, MockEnvironment, mockUser0} from 'sartography-workflow-lib';
|
||||
import { NavbarComponent } from './navbar.component';
|
||||
|
||||
|
||||
|
@ -48,8 +48,8 @@ describe('NavbarComponent', () => {
|
|||
|
||||
const uReq = httpMock.expectOne('apiRoot/user');
|
||||
expect(uReq.request.method).toEqual('GET');
|
||||
uReq.flush(mockUser);
|
||||
expect(component.user).toEqual(mockUser);
|
||||
uReq.flush(mockUser0);
|
||||
expect(component.user).toEqual(mockUser0);
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
|
|
Loading…
Reference in New Issue