Fixes failing e2e test

This commit is contained in:
Aaron Louie 2020-07-31 16:35:32 -04:00
parent 7abbb1019a
commit 0b14a0e101
1 changed files with 3 additions and 3 deletions

View File

@ -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', () => {