diff options
Diffstat (limited to 'node_modules/jsonify/test/stringify.js')
-rw-r--r-- | node_modules/jsonify/test/stringify.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/jsonify/test/stringify.js b/node_modules/jsonify/test/stringify.js new file mode 100644 index 000000000..89b0b6703 --- /dev/null +++ b/node_modules/jsonify/test/stringify.js @@ -0,0 +1,15 @@ +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(); +}); |