Skip to content

Commit

Permalink
fix: do not redeclare variable (#3956)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRuf authored and craigtaub committed Jul 17, 2019
1 parent 6201e42 commit f77cac4
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 f77cac4

Please sign in to comment.