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

16 lines
389 B
JavaScript

var browserify = require('../');
var vm = require('vm');
var test = require('tap').test;
test('only execute entry files', function (t) {
t.plan(1);
var b = browserify();
b.add(__dirname + '/entry_exec/main.js');
b.require(__dirname + '/entry_exec/fail.js');
b.bundle(function (err, src) {
var c = { t: t };
vm.runInNewContext(src, c);
});
});