Skip to content

Commit

Permalink
Less old-school array handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuffster committed May 30, 2013
1 parent d890100 commit 4affe69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ test hooks.
bowties = 'cool';
},
beforeEach: function() {
arr = [1,2,3];
arr = arr.concat(1,2,3);
},
afterEach: function() {
arr = [];
Expand All @@ -152,7 +152,7 @@ test hooks.
},
'arrays have three things': function() {
this.expect(arr.length, 3);
arr[arr.length] = 5;
arr.push(5);
},
'arrays still have three things': function() {
this.expect(arr.length, 3);
Expand Down
6 changes: 2 additions & 4 deletions tests/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ describe("promise callback style", {
bowties = 'cool';
},
beforeEach: function() {
arr[arr.length] = 1;
arr[arr.length] = 2;
arr[arr.length] = 3;
arr = arr.concat(1,2,3);
},
afterEach: function() {
arr = [];
Expand All @@ -139,7 +137,7 @@ describe("promise callback style", {
},
'arrays have three things [beforeEach]': function() {
this.expect(arr.length, 3);
arr[arr.length] = 5;
arr.push(5);
},
'arrays still have three things [afterEach]': function() {
this.expect(arr.length, 3);
Expand Down

0 comments on commit 4affe69

Please sign in to comment.