1.0.9 • Published 4 years ago
simple-tester v1.0.9
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.