fixed test for pipeline to match new angular4 changes on simple change (#1868)

This commit is contained in:
Vito 2017-05-09 03:00:26 -07:00 committed by Eugenio Romano
parent e29741d18d
commit 664565a42a

View File

@ -287,7 +287,7 @@ describe('ActivitiTaskList', () => {
); );
const landingTaskId = '999'; const landingTaskId = '999';
let change = new SimpleChange(null, landingTaskId); let change = new SimpleChange(null, landingTaskId, true);
component.ngOnChanges({'landingTaskId': change}); component.ngOnChanges({'landingTaskId': change});
expect(component.reload).not.toHaveBeenCalled(); expect(component.reload).not.toHaveBeenCalled();
@ -308,7 +308,7 @@ describe('ActivitiTaskList', () => {
); );
const landingTaskId = '888'; const landingTaskId = '888';
let change = new SimpleChange(null, landingTaskId); let change = new SimpleChange(null, landingTaskId, true);
component.onSuccess.subscribe((res) => { component.onSuccess.subscribe((res) => {
expect(res).toBeDefined(); expect(res).toBeDefined();