Sha256: a5f37858492e42467cc4d326a869aadc3aa54868c88e54daac39db7808e41d23
Contents?: true
Size: 576 Bytes
Versions: 7
Compression:
Stored size: 576 Bytes
Contents
var browserify = require('../'); var test = require('tap').test; var path = require('path') test('transform with no entry files', function (t) { process.chdir(__dirname); t.plan(2); var b = browserify(); b.transform('tr'); b.require(path.join(__dirname, 'tr_no_entry/main.js'), { expose: 'yoyo' }); b.bundle(function (err, body) { t.ifError(err); var src = body.toString('utf8') + 'require("yoyo")'; var con = { log: function (msg) { t.equal(msg, 'ZZZ') } }; Function('console', src)(con); }); });
Version data entries
7 entries across 7 versions & 2 rubygems