stringify.js 314 B

123456789101112131415
  1. var test = require('tap').test;
  2. var json = require('../');
  3. var garbage = require('garbage');
  4. test('stringify', function (t) {
  5. for (var i = 0; i < 50; i++) {
  6. var obj = garbage(50);
  7. t.equal(
  8. json.stringify(obj),
  9. JSON.stringify(obj)
  10. );
  11. }
  12. t.end();
  13. });