electron/spec-main/spec-helpers.ts

5 lines
250 B
TypeScript
Raw Normal View History

export const ifit = (condition: boolean) => (condition ? it : it.skip)
export const ifdescribe = (condition: boolean) => (condition ? describe : describe.skip)
2019-11-01 20:37:02 +00:00
export const delay = (time: number) => new Promise(resolve => setTimeout(resolve, time))