Last change
on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
251 bytes
|
Rev | Line | |
---|
[6a3a178] | 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.