Upsilon-VsCode/Client/node_modules/jsonify/test/stringify.js

16 lines
314 B
JavaScript
Raw Normal View History

2019-02-17 17:07:28 +00:00
var test = require('tap').test;
var json = require('../');
var garbage = require('garbage');
test('stringify', function (t) {
for (var i = 0; i < 50; i++) {
var obj = garbage(50);
t.equal(
json.stringify(obj),
JSON.stringify(obj)
);
}
t.end();
});