Skip to content

Commit 9bdf62f

Browse files
aqrlnevanlucas
authored andcommitted
test: refactor test-util-inspect.js
* Enclose tests that used to introduce module-level variables into their own scopes. * Replace ES5 anonymous functions with arrow functions where it makes sense. * And make one arrow function a regular function thus fixing a bug in a getter inside an object created in "Array with dynamic properties" test. This getter has never been invoked though, so the test hasn't been failing. * Convert snake_case identifiers to camelCase. * Make some variable names more readable. * Replace regular expressions in maxArrayLength tests with simple assert.strictEquals() and assert(...endsWith()) checks, as suggested in <#11576 (comment)>. PR-URL: #11779 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent b1d3f59 commit 9bdf62f

File tree

1 file changed

+314
-273
lines changed

1 file changed

+314
-273
lines changed

0 commit comments

Comments
 (0)