provify
Version:
Transform your tape tests to prova
22 lines (17 loc) • 577 B
JavaScript
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
;
var transformTools = require('browserify-transform-tools');
var options = {
jsFilesOnly: true
};
module.exports = transformTools.makeRequireTransform('provify', options,
function (args, opts, done) {
if (args[0] === 'tap' || args[0] === 'tape') {
return done(null, 'require(\'prova\')');
}
else {
return done();
}
});