NET-Web-API-w-Angular/my-app/node_modules/jsonparse/test/unvalid.js

16 lines
251 B
JavaScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
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[');
});