Sha256: 4512ccdfca7a930dbf16b4f6015c7f06d937db4cda1de0474c6b7a0ccf57bbdc

Contents?: true

Size: 928 Bytes

Versions: 11

Compression:

Stored size: 928 Bytes

Contents

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

test('circular', function (t) {
    t.plan(1);
    
    var b = browserify(__dirname + '/circular/main.js');
    b.bundle(function (err, src) {
        vm.runInNewContext(src, { t: t });
    });
});

test('circular expose', function (t) {
    t.plan(1);
    
    var b = browserify(__dirname + '/circular/main.js');
    b.require(__dirname + '/circular/a.js', { expose: './a.js' });
    b.require(__dirname + '/circular/b.js', { expose: './b.js' });
    b.bundle(function (err, src) {
        vm.runInNewContext(src, { t: t });
    });
});

test('circular require', function (t) {
    t.plan(1);
    
    var b = browserify(__dirname + '/circular/main.js');
    b.require(__dirname + '/circular/a.js');
    b.require(__dirname + '/circular/b.js');
    b.bundle(function (err, src) {
        vm.runInNewContext(src, { t: t });
    });
});

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
minimum_viable_product-0.0.11 test/dummy/node_modules/browserify/test/circular.js
brwy_rails-0.0.6 test/dummy/node_modules/browserify/test/circular.js
brwy_rails-0.0.5 test/dummy/node_modules/browserify/test/circular.js
brwy_rails-0.0.4 test/dummy/node_modules/browserify/test/circular.js
brwy_rails-0.0.3 test/dummy/node_modules/browserify/test/circular.js
brwy_rails-0.0.2 test/dummy/node_modules/browserify/test/circular.js
brwy_rails-0.0.1 test/dummy/node_modules/browserify/test/circular.js
sprockets-browserify-0.3.0 node_modules/browserify/test/circular.js
sprockets-browserify-0.2.0 node_modules/browserify/test/circular.js
ruby-wisp-source-0.8.0 vendor/node_modules/browserify/test/circular.js
ruby-wisp-source-0.7.0 vendor/node_modules/browserify/test/circular.js