Sha256: 320f90b1899f547c4e5fa90e021e9b9ee53727e4f25d44ecc67753346d35bd20
Contents?: true
Size: 787 Bytes
Versions: 3
Compression:
Stored size: 787 Bytes
Contents
var browserify = require('../'); var vm = require('vm'); var test = require('tap').test; var setTimeout_ = function (cb, t) { if (!t) { process.nextTick(cb); } else { setTimeout(cb, t); } }; test('entry', function (t) { t.plan(2); var src = browserify({ exports : [ 'require' ] }) .addEntry(__dirname + '/entry/main.js') .bundle() ; var c = { setTimeout : process.nextTick, done : function (one, two) { t.equal(one, 1); t.equal(two, 2); t.end(); } }; vm.runInNewContext(src, c); t.deepEqual( Object.keys(c.require.modules).sort(), [ 'path', '__browserify_process', '/one.js', '/two.js', '/main.js' ].sort() ); });
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
snowball-0.1.22 | node_modules/browserify/test/entry.js |
sprockets-browserify-0.1.2 | node_modules/browserify/test/entry.js |
sprockets-browserify-0.1.0 | node_modules/browserify/test/entry.js |