Dinex is an easy , simple and light javaScript library for testing.
Writing tests is dinex is so easy so Take a look at this examples:
const { test, expect } = require('dinex');
function add(a, b) {
return a + b;
}
test('1+2 should equal to 3', () => {
expect(add(1, 2)).toEqual(3);
});
Result:
Test 1+2 should equal to 3 passed