source: trip-planner-front/node_modules/jsonparse/test/unvalid.js@ 59329aa

Last change on this file since 59329aa was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 251 bytes
Line 
1var test = require('tape');
2var Parser = require('../');
3
4test('unvalid', function (t) {
5 var count = 0;
6
7 var p = new Parser();
8 p.onError = function (value) {
9 count++;
10 t.equal(1, count);
11 t.end();
12 };
13
14 p.write('{"test": eer[');
15});
Note: See TracBrowser for help on using the repository browser.