Skip to content

tkraak/intro-unit-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

Releases

No releases published

Packages

No packages published