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

Version Path
snowball-0.1.22 node_modules/browserify/node_modules/syntax-error/test/check.js
sprockets-browserify-0.3.0 node_modules/browserify/node_modules/syntax-error/test/check.js
sprockets-browserify-0.2.0 node_modules/browserify/node_modules/syntax-error/test/check.js
ruby-wisp-source-0.8.0 vendor/node_modules/browserify/node_modules/syntax-error/test/check.js
ruby-wisp-source-0.7.0 vendor/node_modules/browserify/node_modules/syntax-error/test/check.js
sprockets-browserify-0.1.2 node_modules/browserify/node_modules/syntax-error/test/check.js
sprockets-browserify-0.1.0 node_modules/browserify/node_modules/syntax-error/test/check.js