Browse Source

correction: flow([args])

pull/601/head
lee 4 years ago
parent
commit
74a2a30b7b
  1. 6
      js/tests/flow_test.js

6
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 }
}

Loading…
Cancel
Save