electron/spec-main/spec-helpers.ts

2 lines
159 B
TypeScript
Raw Normal View History

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