Permalink
Browse files

Merge pull request #338 from dwittner/master

Throw assertion errors for asynchronous tests by default.
  • Loading branch information...
2 parents 647ec20 + b163b1d commit 862f8972b6c40572c836234e8efa9ede6e2d14d6 @cjohansen cjohansen committed Jan 30, 2013
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/buster/buster-wiring.js
View
6 lib/buster/buster-wiring.js
@@ -62,10 +62,6 @@
buster.assertions.bind(runner, { "failure": "assertionFailure" });
runner.console = buster.console;
- runner.on("test:async", function () {
- buster.assertions.throwOnFailure = false;
- });
-
runner.on("test:setUp", function () {
buster.assertions.throwOnFailure = true;
});
@@ -85,4 +81,4 @@
return assertions;
};
}
-}(typeof global != "undefined" ? global : this, typeof buster == "object" ? buster : null));
+}(typeof global != "undefined" ? global : this, typeof buster == "object" ? buster : null));

0 comments on commit 862f897

Please sign in to comment.