electron/spec/spec-helpers.js

2 lines
132 B
JavaScript

exports.ifit = (condition) => (condition ? it : it.skip)
exports.ifdescribe = (condition) => (condition ? describe : describe.skip)