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