Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Aug 8, 2021
1 parent 6ee268d commit 4555d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/commonjs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let PATH;

function load(...components) {
const path = join(PATH, ...components);
if (!tested.has(path)) tested.add(path);
tested.add(path);
expected.delete(path);
return require(path);
}
Expand Down

0 comments on commit 4555d02

Please sign in to comment.