All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.jsonify.test.parse.js Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
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();
});




© 2015 - 2025 Weber Informatics LLC | Privacy Policy