From: Renée Kooi Date: Wed, 20 Jun 2018 12:05:19 +0000 (+0200) Subject: Reset INSPECT_MAX_BYTES after buffer-inspect test. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=5741b39b05cc58cc716298055d7d303d08a9755f;p=buffer.git Reset INSPECT_MAX_BYTES after buffer-inspect test. --- diff --git a/test/node/test-buffer-inspect.js b/test/node/test-buffer-inspect.js index 477d6ba..8c40433 100644 --- a/test/node/test-buffer-inspect.js +++ b/test/node/test-buffer-inspect.js @@ -27,6 +27,7 @@ const assert = require('assert'); const util = require('util'); const buffer = require('../../'); +var defaultMaxBytes = buffer.INSPECT_MAX_BYTES; buffer.INSPECT_MAX_BYTES = 2; let b = Buffer.allocUnsafe(4); @@ -58,3 +59,5 @@ assert.strictEqual(util.inspect(s), expected); b.inspect = undefined; assert.strictEqual(util.inspect(b), expected); + +buffer.INSPECT_MAX_BYTES = defaultMaxBytes;