Permalink
Browse files

Fixed indentation and some missing semicolons requested in #82

  • Loading branch information...
1 parent f39a4e2 commit 81482b10d68bacc05c443fd895e07e87e106521b @ryanrolds ryanrolds committed with indexzero Nov 2, 2011
Showing with 9 additions and 9 deletions.
  1. +8 −8 lib/vows/suite.js
  2. +1 −1 test/vows-test.js
View
@@ -338,25 +338,25 @@ this.tryEnd = function (batch) {
Object.defineProperty(env, "callback", {
get: function () {
teardown.awaitingCallback = true;
-
+
return function () {
teardown.awaitingCallback = false;
maybeFinish();
};
}
- })
+ });
teardown.tests.teardown.apply(env, teardown.topics);
}
function maybeFinish() {
- var pending = batch.teardowns.filter(function (teardown) {
- return teardown.awaitingCallback;
- });
+ var pending = batch.teardowns.filter(function (teardown) {
+ return teardown.awaitingCallback;
+ });
- if (pending.length === 0) {
- finish();
- }
+ if (pending.length === 0) {
+ finish();
+ }
}
function finish() {
View
@@ -477,7 +477,7 @@ vows.describe("Vows with asynchonous teardowns").addBatch({
}).addBatch({
"The next batch": {
"is not run until the teardown is complete": function () {
- assert.ok(tornDown)
+ assert.ok(tornDown);
}
}
}).export(module);

0 comments on commit 81482b1

Please sign in to comment.