]> git.r.bdr.sh - rbdr/dotfiles/blob - atom/packages/pretty-json/node_modules/json-stable-stringify/node_modules/jsonify/test/parse.js
e2313f55a0e4d4f21463f588bb565e66b6a8f885
[rbdr/dotfiles] / atom / packages / pretty-json / node_modules / json-stable-stringify / node_modules / jsonify / test / parse.js
1 var test = require('tap').test;
2 var json = require('../');
3 var garbage = require('garbage');
4
5 test('parse', function (t) {
6 for (var i = 0; i < 50; i++) {
7 var s = JSON.stringify(garbage(50));
8
9 t.deepEqual(
10 json.parse(s),
11 JSON.parse(s)
12 );
13 }
14
15 t.end();
16 });