Permalink
Browse files

I always forget to clone objects in JavaScript for some reason.

  • Loading branch information...
1 parent bbf50f5 commit 10af47d8d11acaf554194591b99a55c8353c4387 @Yuffster committed May 31, 2013
Showing with 15 additions and 2 deletions.
  1. +3 −2 describe.js
  2. +12 −0 tests/tests.js
View
@@ -97,8 +97,9 @@
}
function Group(name, tests, config) {
- this.options = options;
- for (var k in config) this.options[k] = config[k];
+ this.options = {};
+ for (var k in options) this.options[k] = options[k];
+ for (k in config) this.options[k] = config[k];
this.tests = tests;
}
View
@@ -143,6 +143,18 @@ describe("expections", {
}, { timeout: 1 });
+
+describe("describe options", {
+
+ "should revert to default timeout of 500ms": function() {
+ (function(callback) {
+ setTimeout(function() { callback(2); }, 400);
+ }(this.expect(2)));
+ }
+
+});
+
+
(function() {
var arr = [], bowties;

0 comments on commit 10af47d

Please sign in to comment.