A tiny javascript framework for unit tests
- 1- Download checkjs-1.1.js LINK;
- 2- Reference the file or link in a html page;
- 3- Call the functions of test and assert.
-
checkJS.assert(condition, "message")
Assert function via html.
-
checkJS.assertLog(condition, "message")
Assert function via console.log.
-
checkJS.test("name of test", function())
Test a set of assertions, using checkJS.assert inside the parameter function() for each assertion.
-
checkJS.asyncTest("name of test", function())
Test a set of asynchronous/callback assertions, using checkJS.assert inside the parameter function() for each assertion.
Check out Examples folder for more details.
- 1- Fork the repository;
- 2- Create an issue;
- 3- Add a doc/function/fix;
- 4- Create a pull request.
- 2015-02-25 v1.1 Modularized framework
- 2015-02-23 v1.0 Release usable version