You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
var test = require('tape'); |
|
var Parser = require('../'); |
|
|
|
test('unvalid', function (t) { |
|
var count = 0; |
|
|
|
var p = new Parser(); |
|
p.onError = function (value) { |
|
count++; |
|
t.equal(1, count); |
|
t.end(); |
|
}; |
|
|
|
p.write('{"test": eer['); |
|
});
|
|
|