Skip to content

Commit 8b29b14

Browse files
committed
squash: simplify test
1 parent 28c9730 commit 8b29b14

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

test/parallel/test-fs-glob-throw.mjs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,8 @@ process.on('uncaughtException', mustCall((err) => {
99
}));
1010

1111
{
12-
let callCount = 0;
13-
const callback = mustCall(() => {
14-
if (callCount++ === 0) {
15-
throw new Error('blep');
16-
}
17-
});
18-
1912
// Test that if callback throws, it's not getting called again
20-
glob('a/b/c', callback);
13+
glob('a/b/c', mustCall(() => {
14+
throw new Error('blep');
15+
}));
2116
}

0 commit comments

Comments
 (0)