mirror of
https://github.com/electron/electron.git
synced 2026-02-12 08:05:07 -05:00
* fix: emit updated on NativeTheme on the UI thread to avoid DCHECK * Update atom_api_native_theme.cc * spec: wait a few ticks for async events to emit so that test events do not leak into each other
5 lines
238 B
TypeScript
5 lines
238 B
TypeScript
export const ifit = (condition: boolean) => (condition ? it : it.skip)
|
|
export const ifdescribe = (condition: boolean) => (condition ? describe : describe.skip)
|
|
|
|
export const delay = (time: number) => new Promise(r => setTimeout(r, time))
|