Sha256: 86984cf5a6e1e19524319a92cf2190b2d332146bf388cbc63c58797d4bd25b9b

Contents?: true

Size: 513 Bytes

Versions: 7

Compression:

Stored size: 513 Bytes

Contents

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

test('hash instances with hashed contexts', function (t) {
    t.plan(5);

    var b = browserify(__dirname + '/symlink_dedupe/main.js');
    b.bundle(function (err, buf) {
        var c = { t: t };
        var src = buf.toString('utf8');
        t.equal(src.match(RegExp('// FILE F ONE', 'g')).length, 1);
        t.equal(src.match(RegExp('// FILE G ONE', 'g')).length, 1);
        vm.runInNewContext(src, c);
    });
});

Version data entries

7 entries across 7 versions & 2 rubygems

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