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

Latest commit

 

History

History

test

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Guidelines

Where to write tests

Place your tests in the test/spec folder. The name of the test file should be the same as the name of the source file that contains the code you're testing, except that the extension will be .test.js instead of .js.

Writing tests

All tests are combined into a single file, and they are all run on the same HTML file. Therefore, all variables you set must be unset in the same test. The state of the page should be the same before and after the tests.

Running tests

npm test or tasks/runtests.sh