Skip to content

Commit 110a3b2

Browse files
Trottjasnell
authored andcommitted
test: confirm callback is invoked in fs test
Use common.mustCall() in test-fs-makeStatsCallback to confirm that the callback is invoked. PR-URL: #13132 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Alexey Orlenko <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 1da674e commit 110a3b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-fs-makeStatsCallback.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function testMakeStatsCallback(cb) {
1616
common.expectWarning('DeprecationWarning', warn);
1717

1818
// Verify the case where a callback function is provided
19-
assert.doesNotThrow(testMakeStatsCallback(common.noop));
19+
assert.doesNotThrow(testMakeStatsCallback(common.mustCall()));
2020

2121
// Passing undefined/nothing calls rethrow() internally, which emits a warning
2222
assert.doesNotThrow(testMakeStatsCallback());

0 commit comments

Comments
 (0)