mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
test: confirm callback is invoked in fs test
Use common.mustCall() in test-fs-makeStatsCallback to confirm that the callback is invoked. PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
8b161e0a78
commit
4a3e089984
1 file changed
+1
-1
@@ -13,7 +13,7 @@ function testMakeStatsCallback(cb) {
|
||||
}
|
||||
|
||||
// Verify the case where a callback function is provided
|
||||
assert.doesNotThrow(testMakeStatsCallback(common.noop));
|
||||
assert.doesNotThrow(testMakeStatsCallback(common.mustCall()));
|
||||
|
||||
// Passing undefined/nothing calls rethrow() internally
|
||||
assert.doesNotThrow(testMakeStatsCallback());
|
||||
|
||||
Reference in new issue
Block a user