Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 953 Bytes

readme.md

File metadata and controls

15 lines (10 loc) · 953 Bytes

Introduction to writing unit tests with AVA

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!

Getting started

  • fork and clone this repo
  • npm install or yarn install
  • npm test to lint with standard and run the tests with AVA
  • npm run lint to lint only
  • happy learning ... pull requests welcome!