From 79149a0792a5589dba07a7398d9857f542b4860c Mon Sep 17 00:00:00 2001 From: Justin Searls Date: Tue, 9 Dec 2014 18:23:57 -0500 Subject: [PATCH] make the test pass It was held up a bit by this issue (requiring a Given -> before) https://github.com/rendro/mocha-given/issues/2 --- test/js-test.coffee | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/test/js-test.coffee b/test/js-test.coffee index 13ff5bb..a75e85d 100644 --- a/test/js-test.coffee +++ b/test/js-test.coffee @@ -7,20 +7,22 @@ createCabbageProject = require('./support/create-cabbage-project') build = require('./../lib/commands/build') -describe 'Hello JavaScript', -> - before (done) -> - @timeout(30000) - tmp.setCwd() - createCabbageProject "pants", -> - tmp.setCwd("pants") - done() +before (done) -> + console.log 'a' + @timeout(30000) + tmp.setCwd() + createCabbageProject "pants", -> + tmp.setCwd("pants") + done() - after -> - @timeout(10000) - tmp.clean() - tmp.resetCwd() +after -> + console.log 'e' + @timeout(10000) + tmp.resetCwd() + tmp.clean() - Given (done) -> build("dist", done) +describe 'Hello JavaScript', -> + before (done) -> build("dist", done) When -> @result = fs.readFileSync("dist/js/app.js").toString() Then -> expect(@result).to.contain("Hello, World!") And -> expect(@result).to.contain("JST['hello.us']")