Sha256: 699b5f7d4a38c8146da00efe6253b88110a177bba99a2d3d33787cfadf3cb6d9
Contents?: true
Size: 621 Bytes
Versions: 3
Compression:
Stored size: 621 Bytes
Contents
var vm = require('vm'); var browserify = require('../'); var test = require('tap').test; test('dnode', function (t) { t.plan(2); var src = browserify.bundle({ require : 'dnode' }); var c = { console : console, navigator : { userAgent : 'foo', platform : 'bar', }, window : { addEventListener : function () {}, }, document : {}, }; vm.runInNewContext(src, c); var dnode = c.require('dnode'); t.ok(dnode, 'dnode object exists'); t.ok(dnode.connect, 'dnode.connect exists'); t.end(); });
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
snowball-0.1.22 | node_modules/browserify/test/dnode.js |
sprockets-browserify-0.1.2 | node_modules/browserify/test/dnode.js |
sprockets-browserify-0.1.0 | node_modules/browserify/test/dnode.js |