summaryrefslogtreecommitdiff
path: root/test/reduce.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/reduce.js')
-rw-r--r--test/reduce.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/reduce.js b/test/reduce.js
index b3c58fc..2e0f06c 100644
--- a/test/reduce.js
+++ b/test/reduce.js
@@ -47,14 +47,14 @@ describe('reduce', () => {
it('reduceRight', (done) => {
var call_order = [];
- var a = [1,2,3];
- async.reduceRight(a, 0, (a, x, callback) => {
+ var arr = [1,2,3];
+ async.reduceRight(arr, 0, (a, x, callback) => {
call_order.push(x);
callback(null, a + x);
}, (err, result) => {
expect(result).to.equal(6);
expect(call_order).to.eql([3,2,1]);
- expect(a).to.eql([1,2,3]);
+ expect(arr).to.eql([1,2,3]);
done();
});
});