Sha256: d0b4558e97b521969e63ba0053f8f8198e2d0c583447701ad0762a4a6e092be8
Contents?: true
Size: 398 Bytes
Versions: 7
Compression:
Stored size: 398 Bytes
Contents
var test = require('tap').test; var fs = require('fs'); var check = require('../'); var file = __dirname + '/sources/check.js'; var src = fs.readFileSync(file); test(function (t) { var err = check(src, file); t.ok(err); t.equal(err.line, 5); t.equal(err.column, 30); t.equal(err.message, 'Unexpected identifier'); t.ok(String(err).indexOf(file) + ':5'); t.end(); });
Version data entries
7 entries across 7 versions & 3 rubygems