From 84c64161b32ef85e930ae2f1975b4de786e9dd8e Mon Sep 17 00:00:00 2001 From: Scott Alan Henry Date: Tue, 24 Oct 2017 07:36:54 -0500 Subject: [PATCH] Updating the test (build.js) to use fs.existsSync for my test --- test/build.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/test/build.js b/test/build.js index d94870a2..7cb164ef 100644 --- a/test/build.js +++ b/test/build.js @@ -142,14 +142,13 @@ describe('grunt', function() { // Ensure the build/html/config directory exists if it should. it('config directory should exist if provided ', function(done) { - fs.exists('src/config', function(exists) { - if (exists) { - fs.exists('build/html/config', function(exists) { - assert.ok(exists); - done(); - }); - } - }); + var src = fs.existsSync('src/config'); + if (src) { + fs.existsSync('build/html/config', function(exists) { + assert.ok(exists); + done(); + }); + } }); });