Remove Jasmine-style done() from test

Refs #1066
This commit is contained in:
Will Abson 2016-11-18 13:59:50 +00:00 committed by Mario Romano
parent 6c0cfee617
commit ac4c31a1d0

View File

@ -92,15 +92,14 @@ describe('ActivitiStartProcessButton', () => {
expect(selectElement.children.length).toBe(3);
});
it('should display the correct process def details', (done) => {
it('should display the correct process def details', async(() => {
fixture.detectChanges();
fixture.whenStable().then(() => {
let optionEl: HTMLOptionElement = debugElement.queryAll(By.css('select option'))[1].nativeElement;
expect(optionEl.value).toBe('my:process1');
expect(optionEl.textContent.trim()).toBe('My Process 1');
done();
});
});
}));
it('should indicate an error to the user if process defs cannot be loaded', async(() => {
getDefinitionsSpy = getDefinitionsSpy.and.returnValue(Observable.throw({}));