This repository serves as a gentle introduction to writing JavaScript unit tests with AVA.
The getAmount()
function and the motivation to refactor it were taken from NodeSchool's JavaScript Best Practices workshop.
The orderTotal()
function was taken from the Fun Fun Function video series on Unit Tesing in JavaScript. Thanks @mpj!