mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 01:27:31 -04:00
16 lines
314 B
JavaScript
16 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();
|
|
});
|