From 4a3e089984124dd80ea3dbde515419676dead3a8 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 20 May 2017 09:50:51 -0700 Subject: [PATCH] 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 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Michael Dawson Reviewed-By: Alexey Orlenko Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Luigi Pinca --- test/parallel/test-fs-makeStatsCallback.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-fs-makeStatsCallback.js b/test/parallel/test-fs-makeStatsCallback.js index 67e6b18dd3d4f7..607fcdadee0b96 100644 --- a/test/parallel/test-fs-makeStatsCallback.js +++ b/test/parallel/test-fs-makeStatsCallback.js @@ -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());