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 <[email protected]>
  • Loading branch information
Trott authored and BethGriggs committed May 10, 2019
1 parent 68b51b3 commit 16e2f7e
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 16e2f7e

Please sign in to comment.