Fix app unit test
This commit is contained in:
parent
05fdc54aa0
commit
c6e2608360
@ -96,7 +96,6 @@ export class UserAdmin {
|
|||||||
|
|
||||||
this.userService.editUser(this.modalProps.user)
|
this.userService.editUser(this.modalProps.user)
|
||||||
.subscribe((response: ApiResponse) => {
|
.subscribe((response: ApiResponse) => {
|
||||||
console.log(response);
|
|
||||||
response.alerts.forEach(note => this.notes.add(note));
|
response.alerts.forEach(note => this.notes.add(note));
|
||||||
|
|
||||||
this.replaceUser(JSON.parse(response.data[1]));
|
this.replaceUser(JSON.parse(response.data[1]));
|
||||||
|
@ -7,8 +7,8 @@ describe('Routes', () => {
|
|||||||
expect(routes.APP_ROUTING).to.be.an('object');
|
expect(routes.APP_ROUTING).to.be.an('object');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('provides APP_COMPONENTS', () => {
|
it('provides ROUTE_COMPONENTS', () => {
|
||||||
expect(routes.APP_COMPONENTS).to.be.an('array');
|
expect(routes.ROUTE_COMPONENTS).to.be.an('array');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user