electron/spec-main/spec-helpers.ts
2020-03-20 13:28:31 -07:00

4 lines
253 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));