Sha256: 6b28b0f89afb496b78f0b5f9ea073e6b86c2b67eaa09e4745760c5f8b771d6df

Contents?: true

Size: 607 Bytes

Versions: 7

Compression:

Stored size: 607 Bytes

Contents

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

test('deps pipeline', function (t) {
    t.plan(1);
    
    var b = browserify(__dirname + '/pipeline_deps/main.js');
    b.pipeline.get('deps').push(through.obj(function (row, enc, next) {
        row.source = row.source.replace(/111/g, '11111');
        this.push(row);
        next();
    }));
    
    b.bundle(function (err, src) {
        Function([ 'console' ], src)({ log: log });
        function log (msg) {
            t.equal(msg, 'main: 56055');
        }
    });
});

Version data entries

7 entries across 7 versions & 2 rubygems

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