Sha256: 4baeba18e825a86e099f05117d46958b4a558cfd2d989dabdd48244fe50486ff

Contents?: true

Size: 624 Bytes

Versions: 7

Compression:

Stored size: 624 Bytes

Contents

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

test('bundle', function (t) {
    t.plan(1);
    var p = parser();
    p.end(path.join(__dirname, '/files/main.js'));
    p.on('error', t.fail.bind(t));
    var pack = packer();
    
    p.pipe(JSONStream.stringify()).pipe(pack);
    
    var src = '';
    pack.on('data', function (buf) { src += buf });
    pack.on('end', function () {
        Function('console', src)({
            log: function (s) { t.equal(s, 'main: 1055') }
        });
    });
});

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/bundle.js
brwy_rails-0.0.6 test/dummy/node_modules/module-deps/test/bundle.js
brwy_rails-0.0.5 test/dummy/node_modules/module-deps/test/bundle.js
brwy_rails-0.0.4 test/dummy/node_modules/module-deps/test/bundle.js
brwy_rails-0.0.3 test/dummy/node_modules/module-deps/test/bundle.js
brwy_rails-0.0.2 test/dummy/node_modules/module-deps/test/bundle.js
brwy_rails-0.0.1 test/dummy/node_modules/module-deps/test/bundle.js