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

Version Path
minimum_viable_product-0.0.11 test/dummy/node_modules/browserify/test/double_bundle.js
brwy_rails-0.0.6 test/dummy/node_modules/browserify/test/double_bundle.js
brwy_rails-0.0.5 test/dummy/node_modules/browserify/test/double_bundle.js
brwy_rails-0.0.4 test/dummy/node_modules/browserify/test/double_bundle.js
brwy_rails-0.0.3 test/dummy/node_modules/browserify/test/double_bundle.js
brwy_rails-0.0.2 test/dummy/node_modules/browserify/test/double_bundle.js
brwy_rails-0.0.1 test/dummy/node_modules/browserify/test/double_bundle.js