tkraak / intro-unit-test

:circus_tent: Workshop: Intro to unit testing with AVA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

:circus_tent: Workshop: Intro to unit testing with AVA


Languages

Language:JavaScript 100.0%