Permalink
Browse files

compatible with nodeunit 0.2.0, bump version

  • Loading branch information...
gerad committed Sep 21, 2010
1 parent 470c995 commit ebf438fa67643a4cab0568554c7ea615825f80c6
Showing with 6 additions and 6 deletions.
  1. +2 −2 lib/nodeunit-dsl.js
  2. +2 −2 package.json
  3. +2 −2 src/nodeunit-dsl.coffee
View
@@ -26,7 +26,7 @@
exports.run = function(name) {
return process.nextTick(function() {
sys.puts(bold(("\n" + (name))));
- return nodeunit.runModule(tests, {
+ return nodeunit.runModule(name, tests, {
name: name,
testStart: function() {
var _a, _b, _c, _d, fn;
@@ -59,7 +59,7 @@
moduleDone: function(name, assertions) {
return assertions.failures ? sys.puts(bold(red(("\nFAILURES " + (assertions.failures) + " / " + (assertions.length) + " ") + (" assertions failed (" + (assertions.duration) + " ms)")))) : sys.puts(bold(green(("\nOK: " + (assertions.length) + " assertions(" + (assertions.duration) + " ms)"))));
}
- });
+ }, (function() {}));
});
};
})();
View
@@ -3,7 +3,7 @@
"description": "A simple DSL built on top of nodeunit",
"keywords": ["test", "qunit", "nodeunit", "tdd", "bdd"],
"author": "Gerad Suyderhoud",
- "version": "0.0.1",
+ "version": "0.0.2",
"licenses": [{
"type": "MIT",
"url": "http://opensource.org/licenses/mit-license.php"
@@ -12,7 +12,7 @@
"node": ">=0.2.0"
},
"dependencies": {
- "nodeunit" : ">=0.1.0"
+ "nodeunit" : ">=0.2.0"
},
"main": "./lib/nodeunit-dsl.js",
"bin": {
View
@@ -22,7 +22,7 @@ exports.after = (fn) ->
exports.run = (name) ->
process.nextTick ->
sys.puts bold "\n#{name}"
- nodeunit.runModule tests, {
+ nodeunit.runModule name, tests, {
name: name
testStart: ->
fn() for fn in befores
@@ -42,4 +42,4 @@ exports.run = (name) ->
else
sys.puts bold(green(
"\nOK: #{assertions.length} assertions(#{assertions.duration} ms)"))
- }
+ }, (->)

0 comments on commit ebf438f

Please sign in to comment.