Sha256: 98c191ba064771ee2c5fdc3e08d583e1caa1c57a5566dd5490c36c0c7c624187

Contents?: true

Size: 497 Bytes

Versions: 7

Compression:

Stored size: 497 Bytes

Contents

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

var isReadable = require('isstream').isReadable;
var isWritable = require('isstream').isWritable;

test('bundle is readable stream', function (t) {
    t.plan(4);
    var b = browserify(__dirname + '/entry/main.js');
    b.on('bundle', function(bundle) {
        t.ok(isReadable(bundle));
        t.notok(isWritable(bundle));
    });

    var stream = b.bundle();
    t.ok(isReadable(stream));
    t.notok(isWritable(stream));
});

Version data entries

7 entries across 7 versions & 2 rubygems

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