Sha256: d7fc40a59dad9773573f1bf5952ad6979688977c2a7de2742ffe862495bc4594

Contents?: true

Size: 558 Bytes

Versions: 7

Compression:

Stored size: 558 Bytes

Contents

var mdeps = require('../');
var test = require('tap').test;
var JSONStream = require('JSONStream');
var packer = require('browser-pack');
var concat = require('concat-stream');
var path = require('path');

test('cycle', function (t) {
    t.plan(1);
    var p = mdeps();
    p.end(path.join(__dirname, '/cycle/main.js'));
    var pack = packer();
    
    p.pipe(JSONStream.stringify()).pipe(pack).pipe(concat(function (src) {
        Function('console', src.toString('utf8'))({
            log: function (msg) { t.equal(msg, 333) }
        });
    }));
});

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
minimum_viable_product-0.0.11 test/dummy/node_modules/module-deps/test/cycle.js
brwy_rails-0.0.6 test/dummy/node_modules/module-deps/test/cycle.js
brwy_rails-0.0.5 test/dummy/node_modules/module-deps/test/cycle.js
brwy_rails-0.0.4 test/dummy/node_modules/module-deps/test/cycle.js
brwy_rails-0.0.3 test/dummy/node_modules/module-deps/test/cycle.js
brwy_rails-0.0.2 test/dummy/node_modules/module-deps/test/cycle.js
brwy_rails-0.0.1 test/dummy/node_modules/module-deps/test/cycle.js