Sha256: 1a11a3d9a7330495fda85f7bc02e31402781e3380b55ada56ed64c37dfbdd91b
Contents?: true
Size: 616 Bytes
Versions: 7
Compression:
Stored size: 616 Bytes
Contents
var browserify = require('../'); var vm = require('vm'); var test = require('tap').test; test('double bundle', function (t) { t.plan(5); var b = browserify(__dirname + '/entry/main.js'); b.bundle(function (err, src0) { t.ifError(err); var c = { done : function (one, two) { t.equal(one, 1); t.equal(two, 2); } }; vm.runInNewContext(src0, c); b.bundle(function (err, src1) { t.ifError(err); t.equal(src1.toString('utf8'), src0.toString('utf8')); }); }); });
Version data entries
7 entries across 7 versions & 2 rubygems