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