mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-25 16:11:24 +08:00
[@types/node] Add tests for extended InspectOptions
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user