electron/spec/spec-helpers.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
216 B
JavaScript
Raw Normal View History

exports.ifit = (condition) => (condition ? it : it.skip);
exports.ifdescribe = (condition) => (condition ? describe : describe.skip);
exports.delay = (time = 0) => new Promise(resolve => setTimeout(resolve, time));