Skip to content

Commit

Permalink
Update node_util_fallback_test.js
Browse files Browse the repository at this point in the history
reworded some of the test names to make the intent clearer
  • Loading branch information
colincasey committed Jan 11, 2022
1 parent cca932a commit 733f5c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/node_util_fallback_test.js
Expand Up @@ -53,15 +53,15 @@ vows
Symbol.for("nodejs.util.inspect.custom") || util.inspect.custom
);
},
"should not be null in a node environment when custom inspect symbol cannot be retrieved": function() {
"should not be null in a node environment when custom inspect symbol cannot be retrieved (< node v10.12.0)": function() {
assert.equal(
getCustomInspectSymbol({
lookupCustomInspectSymbol: () => null
}),
Symbol.for("nodejs.util.inspect.custom") || util.inspect.custom
);
},
"should not be null in a non-node environment": function() {
"should be null in a non-node environment since 'util' features cannot be relied on": function() {
assert.equal(
getCustomInspectSymbol({
lookupCustomInspectSymbol: () => null,
Expand Down

0 comments on commit 733f5c5

Please sign in to comment.