Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

fix: do not redeclare variable (#3956)

Daniel Ruff77cac468794
diff --git a/docs/example/Array.js b/docs/example/Array.js
index 18105cf7..9be8287b 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
+})
+