mirror of
https://github.com/thangisme/notes.git
synced 2024-11-01 04:17:33 -04:00
17 lines
325 B
JavaScript
17 lines
325 B
JavaScript
var test = require('tap').test;
|
|
var json = require('../');
|
|
var garbage = require('garbage');
|
|
|
|
test('parse', function (t) {
|
|
for (var i = 0; i < 50; i++) {
|
|
var s = JSON.stringify(garbage(50));
|
|
|
|
t.deepEqual(
|
|
json.parse(s),
|
|
JSON.parse(s)
|
|
);
|
|
}
|
|
|
|
t.end();
|
|
});
|