asdf-games/node_modules/browserify/test/entry_exec.js

16 lines
389 B
JavaScript
Raw Normal View History

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);
});
});