mirror of https://github.com/abpframework/abp.git
Browse Source
Angular UI: Added a wait utility function to use before opening/after closing modals in testspull/6893/head
committed by
GitHub
2 changed files with 7 additions and 0 deletions
@ -1 +1,2 @@ |
|||
export * from './clear-page.util'; |
|||
export * from './wait.util'; |
|||
|
|||
@ -0,0 +1,6 @@ |
|||
import { ComponentFixture } from '@angular/core/testing'; |
|||
|
|||
export function wait<T extends any>(fixture: ComponentFixture<T>, timeout = 0) { |
|||
fixture.detectChanges(); |
|||
return new Promise(res => setTimeout(res, timeout)); |
|||
} |
|||
Loading…
Reference in new issue