Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Latest commit

 

History

History
28 lines (17 loc) · 736 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 736 Bytes

Build Status

JavaScript Testing

A project to demonstrate JavaScript testing.

Getting Started

npm install
npm test

Running Tests Continuously

The npm test command runs the all the tests once then exits. This is ideal for running in a build server but not for development.

You can run the tests in continuous mode and make changes to files to have the tests automatically re-run. To do this, run the following:

./node_modules/karma/bin/karma start

Running Tests in a Browser

Run a local web server and load index.html e.g:

npm install -g servedir
servedir
http://localhost:8000/test.html