source:
trip-planner-front/node_modules/jsonparse/test/unvalid.js@
6a80231
Last change on this file since 6a80231 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 251 bytes |
Line | |
---|---|
1 | var test = require('tape'); |
2 | var Parser = require('../'); |
3 | |
4 | test('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.