Skip to content

Commit

Permalink
changes compile tests to read sync
Browse files Browse the repository at this point in the history
  • Loading branch information
sintaxi committed Mar 14, 2014
1 parent 594f601 commit 8bd3ba6
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions test/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})

Expand Down

0 comments on commit 8bd3ba6

Please sign in to comment.