From 221c729a5a40744eb4df4a177f3237ae0e3d0c5a Mon Sep 17 00:00:00 2001 From: Daniel Ruf Date: Sun, 23 Jun 2019 23:35:33 +0200 Subject: [PATCH] fix: do not redeclare variable --- docs/example/Array.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/example/Array.js b/docs/example/Array.js index 18105cf75f..9be8287b65 100644 --- a/docs/example/Array.js +++ b/docs/example/Array.js @@ -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); }) @@ -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); }) @@ -70,4 +70,5 @@ describe('Array', function(){ expect(arr).to.have.length(1); }) }) -}) \ No newline at end of file +}) +