From dd1fbc4b380b900e30aba8da1ceb2f161790ebd4 Mon Sep 17 00:00:00 2001 From: segayuu Date: Thu, 25 Oct 2018 09:48:19 +0900 Subject: [PATCH] Fix test for nodejs v11 or higher https://nodejs.org/api/util.html#util_util_inspect_object_options --- test/scripts/helpers/debug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/scripts/helpers/debug.js b/test/scripts/helpers/debug.js index c31829a547..5bc8b8e4fd 100644 --- a/test/scripts/helpers/debug.js +++ b/test/scripts/helpers/debug.js @@ -21,7 +21,7 @@ describe('debug', () => { it('inspect deep object', () => { const obj = { baz: { thud: 'narf', dur: { foo: 'bar', baz: { bang: 'zoom' } } } }; - debug.inspectObject(obj).should.not.eql(inspect(obj, {depth: 5})); + debug.inspectObject(obj, {depth: 2}).should.not.eql(inspect(obj, {depth: 5})); debug.inspectObject(obj, {depth: 5}).should.eql(inspect(obj, {depth: 5})); });