Sha256: e19ba1118571b434d8c3014d1821fd5926010faeaa6fdd0b95914fa750ff180e
Contents?: true
Size: 446 Bytes
Versions: 3
Compression:
Stored size: 446 Bytes
Contents
var browserify = require('../'); var vm = require('vm'); var test = require('tap').test; test('json', function (t) { t.plan(1); var b = browserify(); b.add(__dirname + '/json/main.js'); b.bundle(function (err, src) { if (err) t.fail(err); var c = { ex : function (obj) { t.same(obj, { beep : 'boop', x : 555 }); } }; vm.runInNewContext(src, c); }); });
Version data entries
3 entries across 3 versions & 2 rubygems