Skip to content

Commit 733f5c5

Browse files
authored
Update node_util_fallback_test.js
reworded some of the test names to make the intent clearer
1 parent cca932a commit 733f5c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/node_util_fallback_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ vows
5353
Symbol.for("nodejs.util.inspect.custom") || util.inspect.custom
5454
);
5555
},
56-
"should not be null in a node environment when custom inspect symbol cannot be retrieved": function() {
56+
"should not be null in a node environment when custom inspect symbol cannot be retrieved (< node v10.12.0)": function() {
5757
assert.equal(
5858
getCustomInspectSymbol({
5959
lookupCustomInspectSymbol: () => null
6060
}),
6161
Symbol.for("nodejs.util.inspect.custom") || util.inspect.custom
6262
);
6363
},
64-
"should not be null in a non-node environment": function() {
64+
"should be null in a non-node environment since 'util' features cannot be relied on": function() {
6565
assert.equal(
6666
getCustomInspectSymbol({
6767
lookupCustomInspectSymbol: () => null,

0 commit comments

Comments
 (0)