Sha256: 5929048121c05e5d62dbc4ff4a1954c7158bbde5ada0fe90efbb1a34da3b302d

Contents?: true

Size: 640 Bytes

Versions: 7

Compression:

Stored size: 640 Bytes

Contents

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

test('transform', function (t) {
    t.plan(3);
    var p = mdeps({
        transform: [ 'insert-aaa', 'insert-bbb' ],
        transformKey: [ 'browserify', 'transform' ]
    });
    p.end(path.join(__dirname, '/files/tr_2dep_module/main.js'));
    var pack = packer();
    
    p.pipe(JSONStream.stringify()).pipe(pack);
    
    var src = '';
    pack.on('data', function (buf) { src += buf });
    pack.on('end', function () {
        Function('t', src)(t);
    });
});

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