Skip to content

Commit

Permalink
fix: do not redeclare variable
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRuf committed Jul 14, 2019
1 parent 5d4dd98 commit 221c729
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/example/Array.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('Array', function(){
var arr = [];
var n = arr.push('foo');
expect(n).to.equal(1);
var n = arr.push('bar');
n = arr.push('bar');
expect(n).to.equal(2);
})

Expand All @@ -39,7 +39,7 @@ describe('Array', function(){
var arr = [];
var n = arr.unshift('foo');
expect(n).to.equal(1);
var n = arr.unshift('bar');
n = arr.unshift('bar');
expect(n).to.equal(2);
})

Expand Down Expand Up @@ -70,4 +70,5 @@ describe('Array', function(){
expect(arr).to.have.length(1);
})
})
})
})

0 comments on commit 221c729

Please sign in to comment.