From 08ba467781c87dc8409c8e0343bb1feeb9dc5778 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 20 Aug 2019 14:25:49 -0400 Subject: [PATCH] fix scan taking only 4 values --- test/test1.js | 3 --- test/test2.js | 3 --- test/test3.js | 3 --- 3 files changed, 9 deletions(-) diff --git a/test/test1.js b/test/test1.js index df2d106..a9dd38f 100644 --- a/test/test1.js +++ b/test/test1.js @@ -5,9 +5,6 @@ let web3 = new Web3("ws://localhost:8545"); let myscan = scan((acc, curr) => { acc.push(curr); - if (acc.length > 4) { - acc.shift(); - } return acc; }, []) diff --git a/test/test2.js b/test/test2.js index 7a8299f..256efd7 100644 --- a/test/test2.js +++ b/test/test2.js @@ -5,9 +5,6 @@ let web3 = new Web3("ws://localhost:8545"); let myscan = scan((acc, curr) => { acc.push(curr); - if (acc.length > 4) { - acc.shift(); - } return acc; }, []) diff --git a/test/test3.js b/test/test3.js index 061bab1..a3ebc63 100644 --- a/test/test3.js +++ b/test/test3.js @@ -5,9 +5,6 @@ let web3 = new Web3("ws://localhost:8545"); let myscan = scan((acc, curr) => { acc.push(curr); - if (acc.length > 4) { - acc.shift(); - } return acc; }, [])