From c77bed4342b19dd98786f69e02052a9fe0c05553 Mon Sep 17 00:00:00 2001 From: nick spragg Date: Wed, 18 Jan 2017 19:43:06 +0000 Subject: [PATCH] Fix: create/remove dirs on the fly --- test/file.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/file.js b/test/file.js index e42a76c..10192eb 100644 --- a/test/file.js +++ b/test/file.js @@ -461,6 +461,14 @@ describe('File', () => { }); describe('.delete', () => { + before(() => { + fs.mkdirSync(getFixturePath('delete')); + }); + + after(() => { + fs.rmdirSync(getFixturePath('delete')); + }); + const fileToDelete = getFixturePath('delete/a.txt'); beforeEach(() => { createFile(fileToDelete, {