From 74a2a30b7b4c7331a2773e88a4d0d64808b830bd Mon Sep 17 00:00:00 2001 From: lee Date: Wed, 17 Jun 2020 13:28:17 +0100 Subject: [PATCH] correction: flow([args]) --- js/tests/flow_test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/tests/flow_test.js b/js/tests/flow_test.js index e9751ec7..f416bac0 100644 --- a/js/tests/flow_test.js +++ b/js/tests/flow_test.js @@ -14,9 +14,9 @@ const addAll = (...el) => el.length === 1 ? el[0] : el[0] + addAll(...el.slice(1)) export const setup = () => { - const farenheitToCelsius = flow(sub32, mult5, div9, roundDown) - const add2Mult2Square = flow(add2, mult2, square) - const addAllThenConvertToCelsius = flow(addAll, farenheitToCelsius) + const farenheitToCelsius = flow([sub32, mult5, div9, roundDown]) + const add2Mult2Square = flow([add2, mult2, square]) + const addAllThenConvertToCelsius = flow([addAll, farenheitToCelsius]) return { farenheitToCelsius, add2Mult2Square, addAllThenConvertToCelsius } }