electron/spec-main/spec-helpers.ts
2019-11-01 13:37:02 -07:00

4 lines
250 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(resolve => setTimeout(resolve, time))