Functional Programming Unit Testing in Node (Part 2)

See the original posting on DZone Python

In Part 2, we’ll validate our inputs using predicates, show how to make asynchronous pure functions, and show various techniques on how you call unsafe code from Functional Code.


This is a six part series on refactoring imperative code in Node to a functional programming style with unit tests. You are currently on Part 2.