Permalink
Browse files

Whoops, there was a return; statment from Object.each where we needed…

… a continue; statement.
  • Loading branch information...
1 parent 21ab1cf commit 7cce8a979b25e3e8923d3ee5d93bbb6747b9248b @Yuffster committed May 15, 2011
Showing with 9 additions and 1 deletion.
  1. +1 −1 describe.js
  2. +8 −0 test.js
View
@@ -18,7 +18,7 @@ describe = function(series, obj) {
failed++;
console.log("\t"+desc.color('red'));
console.log("\t\t====> "+e.stack);
- return;
+ continue;
}
passed++;
View
@@ -5,6 +5,14 @@ describe("Does it work?", {
'Yes, it appears to': function() {
assert.ok(true);
+ },
+
+ 'This test should fail.': function() {
+ assert.ok(false);
+ },
+
+ 'But this should pass.': function() {
+ assert.ok(true);
}
});

0 comments on commit 7cce8a9

Please sign in to comment.