export async function renderFormula(fixture: ComponentFixture<any>, formula: Formula, value: any) {
    Object.assign(fixture.componentInstance, {
        formula,
        value,
    })

    fixture.detectChanges()

    await fixture.whenRenderingDone()
}
Пример #2
0
 it('should load navigation items correctly', (done) => {
   fixture.whenRenderingDone().then( () => {
     expect(component.menu_main.length).toBe(1);
     done();
   });
 });