Skip to content

Commit

Permalink
hot fix: node v4 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmarkclements committed Jun 2, 2018
1 parent 36d4d26 commit 9a2ae1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/basic.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ test('when safe is true it should ONLY use `fast-safe-stringify`', function (t)

test('when safe is true, fast-safe-stringify must be used when interpolating', function (t) {
var instance = pino({safe: true}, sink(function (chunk, enc, cb) {
const { msg } = chunk
var msg = chunk.msg
t.is(msg, 'test {"a":{"b":{"c":"[Circular]"}}}')
t.end()
}))
Expand All @@ -520,7 +520,7 @@ test('when safe is true, fast-safe-stringify must be used when interpolating', f

test('when safe is false, interpolation output circulars at the root', function (t) {
var instance = pino({safe: false}, sink(function (chunk, enc, cb) {
const { msg } = chunk
var msg = chunk.msg
t.is(msg, 'test "[Circular]"')
t.end()
}))
Expand Down

0 comments on commit 9a2ae1e

Please sign in to comment.