Browse Source

Merge pull request #601 from 01-edu/flow-fix

correction: flow([args])
content-update
LEEDASILVA 4 years ago committed by GitHub
parent
commit
a9adac2911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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