Permalink
Browse files

formatting

  • Loading branch information...
1 parent 674b694 commit 5ed9ea059da972c3e27b2969cdd14c370063b74b @avalade committed Aug 7, 2012
Showing with 17 additions and 5 deletions.
  1. +17 −5 test/coffee_test.js
View
@@ -63,7 +63,10 @@ exports['coffee'] = {
if (fs.existsSync(expectedJSFile)) {
fs.unlinkSync(expectedJSFile);
}
- rmFiles([outputFolder]);
+
+ if (fs.existsSync(outputFolder)) {
+ rmFiles([outputFolder]);
+ }
done();
},
@@ -104,10 +107,19 @@ exports['coffee'] = {
'helper-dirs-base': function(test) {
var base = 'test';
test.expect(1);
- grunt.helper('coffee', [src], outputFolder, { preserve_dirs:true, base_path:base });
- test.equal(grunt.file.read(path.join(outputFolder, expectedJSFile.replace(new RegExp('^'+base), ''))),
- '\nconsole.log("Hello CoffeeScript!");\n',
- 'it should compile the coffee');
+ grunt.helper('coffee',
+ [src],
+ outputFolder,
+ {
+ preserve_dirs:true,
+ base_path:base
+ });
+ test.equal(
+ grunt.file.read(
+ path.join(outputFolder, expectedJSFile.replace(new RegExp('^'+base), ''))
+ ),
+ '\nconsole.log("Hello CoffeeScript!");\n',
+ 'it should compile the coffee');
test.done();
},

0 comments on commit 5ed9ea0

Please sign in to comment.