From f862fae473ea4e160488493989469e1f7fd29bb5 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Thu, 9 Jul 2015 01:33:46 +0200 Subject: [PATCH] fixed a bug --- src/y.spec.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/y.spec.js b/src/y.spec.js index 0811130d..ed9c263d 100644 --- a/src/y.spec.js +++ b/src/y.spec.js @@ -9,7 +9,7 @@ function getRandom (o) { } else if (o.constructor === Object) { var ks = []; for (var key in o) { - keys.push(key); + ks.push(key); } return o[getRandom(ks)]; } @@ -20,7 +20,8 @@ function getRandomNumber(n) { } return Math.floor(Math.random() * n); } -var keys = ["a", "b", "c", "d", "e", "f", 1, 2, 3, 4, 5, 6]; + + var numberOfYMapTests = 30; function applyRandomTransactions (users, transactions, numberOfTransactions) {