Sha256: 2b7a24d441d085399ef520c22a70093c8d28bc1a1d1492307dedc90ae327a840

Contents?: true

Size: 683 Bytes

Versions: 7

Compression:

Stored size: 683 Bytes

Contents

var browserify = require('../');
var vm = require('vm');
var test = require('tap').test;

test('reset', function (t) {
    t.plan(4);
    
    var b = browserify();
    b.require('path');
    b.bundle(function (err, src) {
        check(err, src);
        b.bundle(function (err, src) {
            check(err, src);
        });
    });
    
    function check (err, src) {
        t.ifError(err);
        var c = {
            setTimeout : setTimeout,
            clearTimeout : clearTimeout,
            console : console
        };
        vm.runInNewContext(src, c);
        
        t.equal(
            c.require('path').join('/a', 'b'),
            '/a/b'
        );
    }
});

Version data entries

7 entries across 7 versions & 2 rubygems

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