From cd9a333a94c0c57c6e16c76aab210bee3d60ddef Mon Sep 17 00:00:00 2001 From: Mario Romano Date: Fri, 16 Dec 2016 18:39:50 +0000 Subject: [PATCH] fix tests async --- .../src/components/activiti-task-details.component.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ng2-components/ng2-activiti-tasklist/src/components/activiti-task-details.component.spec.ts b/ng2-components/ng2-activiti-tasklist/src/components/activiti-task-details.component.spec.ts index 4e65534f66..e161f3bec6 100644 --- a/ng2-components/ng2-activiti-tasklist/src/components/activiti-task-details.component.spec.ts +++ b/ng2-components/ng2-activiti-tasklist/src/components/activiti-task-details.component.spec.ts @@ -96,16 +96,16 @@ describe('ActivitiTaskDetails', () => { expect(fixture.nativeElement.innerText).toBe('TASK_DETAILS.MESSAGES.NONE'); }); - it('should display a form when the task has an associated form', async(() => { + it('should display a form when the task has an associated form', () => { component.taskId = '123'; fixture.detectChanges(); fixture.whenStable().then(() => { fixture.detectChanges(); expect(fixture.debugElement.query(By.css('activiti-form'))).not.toBeNull(); }); - })); + }); - it('should not display a form when the task does not have an associated form', async((done) => { + it('should not display a form when the task does not have an associated form', async(() => { component.taskId = '123'; taskDetailsMock.formKey = undefined; fixture.detectChanges();