This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/jsonify/test/parse.js
2019-08-11 20:48:02 +02:00

16 lines
325 B
JavaScript

var test = require('tap').test;
var json = require('../');
var garbage = require('garbage');
test('parse', function (t) {
for (var i = 0; i < 50; i++) {
var s = JSON.stringify(garbage(50));
t.deepEqual(
json.parse(s),
JSON.parse(s)
);
}
t.end();
});