shebang.js 294 B

1234567891011
  1. var browserify = require('../');
  2. var vm = require('vm');
  3. var test = require('tap').test;
  4. test('files with shebangs', function (t) {
  5. t.plan(1);
  6. var b = browserify(__dirname + '/shebang/main.js');
  7. b.bundle(function (err, src) {
  8. vm.runInNewContext(src, { t: t });
  9. });
  10. });