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