Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

coffee test

Tj Holowaychukabf2b67ce8bc
diff --git a/bin/mocha b/bin/mocha
index c0839f32..10bc0e85 100755
--- a/bin/mocha
+++ b/bin/mocha
@@ -112,7 +112,7 @@ if (!files.length) {
try {
require('coffee-script');
return path.match(/\.(js|coffee)$/);
- } catch (e) {
+ } catch (err) {
return path.match(/\.js$/);
}
}).map(function(path){
diff --git a/test/test.coffee b/test/test.coffee
new file mode 100644
index 00000000..b1c470a6
--- /dev/null
+++ b/test/test.coffee
@@ -0,0 +1,6 @@
+
+obj = foo: 'bar'
+
+describe 'coffeescript', ->
+ it 'should work', ->
+ obj.should.eql foo: 'bar'
\ No newline at end of file