electron/spec-main/spec-helpers.ts

5 lines
238 B
TypeScript
Raw Normal View History

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))