Skip to content

Commit

Permalink
I always forget to clone objects in JavaScript for some reason.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuffster committed May 31, 2013
1 parent bbf50f5 commit 10af47d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions describe.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
12 changes: 12 additions & 0 deletions tests/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 10af47d

Please sign in to comment.