simple-tester
v1.0.9
Published
A smiple javascript test library
Downloads
24
Readme
Simple Tester
A very simple javascript library for running unit tests for other javascript modules.
Usage
let hello = (name) => {
if(!name) {
return 'Hello!';
}
else {
return `Hello ${name}!`;
}
}
let cases = [
new TestCase("World", "Hello World!"),
new TestException(null, "Argument exception")
];
(new TestRunner(cases, hello)).run()
License
Simple Tester is licensed with MIT License.