dotfiles/.vscode/extensions/saviorisdead.RustyCode-0.18.0/node_modules/jsonify/test/stringify.js
Cyryl Płotnicki 2f946d6200 Add .vscode
2016-09-11 10:29:13 +02:00

15 lines
314 B
JavaScript

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();
});