asdf-games/node_modules/browserify/test/multi_symlink.js

14 lines
432 B
JavaScript
Raw Normal View History

var browserify = require('../');
var vm = require('vm');
var test = require('tap').test;
test('multiple symlink execution', { skip: process.platform === 'win32' }, function (t) {
t.plan(1);
var b = browserify(__dirname + '/multi_symlink/main.js');
b.bundle(function (err, src) {
var c = { console: { log: log } };
vm.runInNewContext(src, c);
function log (msg) { t.equal(msg, 'X') }
});
});