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