[@types/node] Add tests for extended InspectOptions

This commit is contained in:
ZaneHannanAU
2018-06-23 10:06:59 +10:00
committed by GitHub
parent 7f62a3c119
commit 36a8cba524

View File

@@ -756,7 +756,8 @@ namespace util_tests {
customInspect: false,
showProxy: true,
maxArrayLength: 10,
breakLength: 20
breakLength: 20,
compact: true
});
util.inspect(["This is nice"], {
colors: true,
@@ -764,7 +765,8 @@ namespace util_tests {
customInspect: false,
showProxy: true,
maxArrayLength: null,
breakLength: Infinity
breakLength: Infinity,
compact: false
});
assert(typeof util.inspect.custom === 'symbol');