Sha256: ca9f4aa398de7c39116dc538f285ef067105d24281e8cbc0779df7d4b4b76a05

Contents?: true

Size: 1.05 KB

Versions: 7

Compression:

Stored size: 1.05 KB

Contents

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

test('ignoreMissing option', function (t) {
    t.test('on browserify', function(t) {
        t.plan(1);
        
        var ignored = browserify({
            entries: [__dirname + '/ignore_missing/main.js'],
            ignoreMissing: true
        });

        ignored.bundle(function(err) {
            t.ok(!err, "bundle completed with missing file ignored");
        });
    });

    t.test('on .bundle', function(t) {
        t.plan(1);
        
        var ignored = browserify(__dirname + '/ignore_missing/main.js', {
            ignoreMissing: true
        });

        ignored.bundle(function(err) {
            t.ok(!err, "bundle completed with missing file ignored");
        });
    });

    t.test('defaults to false', function (t) {
        t.plan(1);
        
        var expected = browserify(__dirname + '/ignore_missing/main.js');

        expected.bundle(function(err) {
            t.ok(err, 'ignoreMissing was false, an error was raised');
        });
    });
    
    t.end();
});

Version data entries

7 entries across 7 versions & 2 rubygems

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