GT2/Ejectable/node_modules/jsonify/test/parse.js

17 lines
325 B
JavaScript
Raw Normal View History

2021-08-16 00:14:59 +00:00
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();
});