Skip to content

Commit

Permalink
test: refactor test-esm-namespace.mjs
Browse files Browse the repository at this point in the history
Remove unused `name` argument that is different from a subsequent `name`
argument in a different but nearby function. This was mildly confusing
to me at first, so hopefully this change clarifies things for others
reading the test.

PR-URL: #25117
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and BethGriggs committed Apr 28, 2019
1 parent 35ed499 commit a31532e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/es-module/test-esm-namespace.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Module from 'module';

const keys = Object.entries(
Object.getOwnPropertyDescriptors(new Module().require('fs')))
.filter(([name, d]) => d.enumerable)
.filter(([ , d]) => d.enumerable)
.map(([name]) => name)
.concat('default')
.sort();
Expand Down

0 comments on commit a31532e

Please sign in to comment.