Skip to content

Commit 4a3e089

Browse files
TrottMylesBorins
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 8b161e0 commit 4a3e089

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
@@ -13,7 +13,7 @@ function testMakeStatsCallback(cb) {
1313
}
1414

1515
// Verify the case where a callback function is provided
16-
assert.doesNotThrow(testMakeStatsCallback(common.noop));
16+
assert.doesNotThrow(testMakeStatsCallback(common.mustCall()));
1717

1818
// Passing undefined/nothing calls rethrow() internally
1919
assert.doesNotThrow(testMakeStatsCallback());

0 commit comments

Comments
 (0)