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 <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <mhdawson@ibm.com> Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
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

Lines changed: 1 addition & 1 deletion
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)