From 02bd6d8a620af00e535e2634159c1b7baacd7f43 Mon Sep 17 00:00:00 2001 From: dleung25 Date: Tue, 9 Oct 2018 13:27:22 -0400 Subject: [PATCH] Issue#518 fix: Add test for fsPromises.unlink() should be a function (#526) * issue518 fix * changed back to original package.json * add newline to end of file --- tests/spec/fs.unlink.spec.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/spec/fs.unlink.spec.js b/tests/spec/fs.unlink.spec.js index 8ece478..b087b4a 100644 --- a/tests/spec/fs.unlink.spec.js +++ b/tests/spec/fs.unlink.spec.js @@ -104,3 +104,14 @@ describe('fs.unlink', function() { }); }); }); + + +describe('fs.promises.unlink', function () { + beforeEach(util.setup); + afterEach(util.cleanup); + + it('should be a function', function () { + var fs = util.fs(); + expect(fs.promises.unlink).to.be.a('function'); + }); +});