Sha256: 349188424f28f3bd36de2029cf2b3e4ca88998c016531b0a0eddc3358e2d5683

Contents?: true

Size: 543 Bytes

Versions: 7

Compression:

Stored size: 543 Bytes

Contents

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

test('coffeeify with an implicit global', function (t) {
    t.plan(1);
    
    var b = browserify(__dirname + '/coffeeify/main.coffee');
    b.transform('coffeeify');
    b.bundle(function (err, src) {
        if (err) t.fail(err);
        vm.runInNewContext(src, {
            console: { log: log },
            setTimeout: setTimeout,
            clearTimeout: clearTimeout
        });
        function log (msg) { t.equal(msg, 'eyo') }
    });
});

Version data entries

7 entries across 7 versions & 2 rubygems

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