From 8bd3ba6ca5de9f8f76953029667ecc0b50178866 Mon Sep 17 00:00:00 2001 From: Brock Whitten Date: Fri, 14 Mar 2014 15:29:45 -0700 Subject: [PATCH] changes compile tests to read sync --- test/compile.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/test/compile.js b/test/compile.js index a5a665b5..2a6a3a62 100644 --- a/test/compile.js +++ b/test/compile.js @@ -20,15 +20,16 @@ describe("compile", function(){ it("compile should not include files named with underscores", function(done) { var cssOutputPath = path.join(outputPath, "public/css") - fs.readFile(path.join(cssOutputPath, "/_partials/some.css"), function(err, contents){ - should.not.exist(contents) - }) - fs.readFile(path.join(cssOutputPath, "/_partials/_more.css"), function(err, contents){ - should.not.exist(contents) - }) - fs.readFile(path.join(cssOutputPath, "/_nav.css"), function(err, contents){ - should.not.exist(contents) - }) + + var rsp = fs.existsSync(path.join(cssOutputPath, "/_partials/some.css")) + rsp.should.be.false + + var rsp = fs.existsSync(path.join(cssOutputPath, "/_partials/_more.css")) + rsp.should.be.false + + var rsp = fs.existsSync(path.join(cssOutputPath, "/_nav.css")) + rsp.should.be.false + done() })