From e71890562e6b566f331bb49ea5fd6f8c05dc9d40 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Thu, 4 Jun 2015 00:35:18 -0700 Subject: [PATCH] fix some test failures --- CHANGES.md | 2 +- test/safe-json-stringify.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index f4d99c6..824894e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -8,7 +8,7 @@ Known issues: ## bunyan 1.3.7 (not yet released) -(nothing yet) +- safe-json-stringify@1.0.3 changed output, breaking some tests. Fix those. ## bunyan 1.3.6 diff --git a/test/safe-json-stringify.test.js b/test/safe-json-stringify.test.js index 1ac41b1..6b8dc40 100644 --- a/test/safe-json-stringify.test.js +++ b/test/safe-json-stringify.test.js @@ -25,7 +25,7 @@ test('__defineGetter__ boom', function (t) { exec(cmd, function (err, stdout, stderr) { t.ifError(err, err); var rec = JSON.parse(stdout.trim()); - t.equal(rec.obj.boom, '[Throws]'); + t.equal(rec.obj.boom, '[Throws: __defineGetter__ ouch!]'); t.end(); }); }); @@ -48,7 +48,7 @@ test('defineProperty boom', function (t) { var recs = stdout.trim().split(/\n/g); t.equal(recs.length, 2); var rec = JSON.parse(recs[0]); - t.equal(rec.obj.boom, '[Throws]'); + t.equal(rec.obj.boom, '[Throws: defineProperty ouch!]'); t.end(); }); });