nyc-bookstores/node_modules/browserify/test/ignore.js
2013-05-27 13:45:59 -07:00

17 lines
395 B
JavaScript

var browserify = require('../');
var test = require('tap').test;
var vm = require('vm');
test('ignore', function (t) {
t.plan(1);
var b = browserify();
b.add(__dirname + '/ignore/main.js');
b.ignore( __dirname + '/ignore/skip.js');
b.bundle(function (err, src) {
if (err) t.fail(err);
vm.runInNewContext(src, { t: t });
});
});