electron/spec-main/spec-helpers.ts

2 lines
No EOL
159 B
TypeScript

export const ifit = (condition: boolean) => (condition ? it : it.skip)
export const ifdescribe = (condition: boolean) => (condition ? describe : describe.skip)