From 51afeeaf54768f9856c190aeb56b06b3e8a16180 Mon Sep 17 00:00:00 2001 From: Ben Heidemann Date: Sun, 18 Apr 2021 13:08:17 +0100 Subject: [PATCH] test: simplify regression test for issue773 --- tests/bugs/issue773.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/bugs/issue773.js b/tests/bugs/issue773.js index f5d3152..a6936ea 100644 --- a/tests/bugs/issue773.js +++ b/tests/bugs/issue773.js @@ -7,12 +7,6 @@ describe('unexpected failures when calling fs functions (e.g. writeFile) with em it('should call fs.writeFile with an empty options object', function(done) { const fs = util.fs(); - fs.writeFile('/a', 'trololol', {}, (err) => { - if (err) { - done(err); - return; - } - done(); - }); + fs.writeFile('/a', 'trololol', {}, done); }); });