mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
fix tests async
This commit is contained in:
parent
167e82b846
commit
cd9a333a94
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user