Skip to content

Commit 81482b1

Browse files
ryanroldsindexzero
authored andcommitted
Fixed indentation and some missing semicolons requested in #82
1 parent f39a4e2 commit 81482b1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

lib/vows/suite.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -338,25 +338,25 @@ this.tryEnd = function (batch) {
338338
Object.defineProperty(env, "callback", {
339339
get: function () {
340340
teardown.awaitingCallback = true;
341-
341+
342342
return function () {
343343
teardown.awaitingCallback = false;
344344
maybeFinish();
345345
};
346346
}
347-
})
347+
});
348348

349349
teardown.tests.teardown.apply(env, teardown.topics);
350350
}
351351

352352
function maybeFinish() {
353-
var pending = batch.teardowns.filter(function (teardown) {
354-
return teardown.awaitingCallback;
355-
});
353+
var pending = batch.teardowns.filter(function (teardown) {
354+
return teardown.awaitingCallback;
355+
});
356356

357-
if (pending.length === 0) {
358-
finish();
359-
}
357+
if (pending.length === 0) {
358+
finish();
359+
}
360360
}
361361

362362
function finish() {

test/vows-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ vows.describe("Vows with asynchonous teardowns").addBatch({
477477
}).addBatch({
478478
"The next batch": {
479479
"is not run until the teardown is complete": function () {
480-
assert.ok(tornDown)
480+
assert.ok(tornDown);
481481
}
482482
}
483483
}).export(module);

0 commit comments

Comments
 (0)