multi_symlink.js 432 B

12345678910111213
  1. var browserify = require('../');
  2. var vm = require('vm');
  3. var test = require('tap').test;
  4. test('multiple symlink execution', { skip: process.platform === 'win32' }, function (t) {
  5. t.plan(1);
  6. var b = browserify(__dirname + '/multi_symlink/main.js');
  7. b.bundle(function (err, src) {
  8. var c = { console: { log: log } };
  9. vm.runInNewContext(src, c);
  10. function log (msg) { t.equal(msg, 'X') }
  11. });
  12. });