run2.js 277 B

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