Sha256: d53d00b8677fbac161209eaea80d489f0e0d88b6458f91ec25467a7d7fea72a6

Contents?: true

Size: 607 Bytes

Versions: 7

Compression:

Stored size: 607 Bytes

Contents

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

test('backbone', function (t) {
    t.plan(3);
    var b = browserify();
    b.require('backbone');
    b.bundle(function (err, buf) {
        t.ok(Buffer.isBuffer(buf));
        var src = buf.toString('utf8');
        t.ok(src.length > 0);
        
        var c = { console: console };
        vm.runInNewContext(src, c);
        t.deepEqual(
            Object.keys(backbone).sort(),
            Object.keys(c.require('backbone')).sort()
        );
        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/backbone.js
brwy_rails-0.0.6 test/dummy/node_modules/browserify/test/backbone.js
brwy_rails-0.0.5 test/dummy/node_modules/browserify/test/backbone.js
brwy_rails-0.0.4 test/dummy/node_modules/browserify/test/backbone.js
brwy_rails-0.0.3 test/dummy/node_modules/browserify/test/backbone.js
brwy_rails-0.0.2 test/dummy/node_modules/browserify/test/backbone.js
brwy_rails-0.0.1 test/dummy/node_modules/browserify/test/backbone.js