shebang.js 264 B

12345678910111213
  1. var test = require('tap').test;
  2. var fs = require('fs');
  3. var check = require('../');
  4. var file = __dirname + '/sources/shebang.js';
  5. var src = fs.readFileSync(file);
  6. test('shebang', function (t) {
  7. var err = check(src, file);
  8. t.notOk(err);
  9. t.end();
  10. });