@oyflores/nudetest
v0.0.3
Published
The easiest unit-test lib in the world.
Downloads
6
Readme
To use run:
node ./node_modules/nudetest my-test.jswhere my-test.js could be like this:
const test = require('./index');
const assert = require('assert')
test('Sample test one', () => {
assert.equal(2*2, 4);
});
test('Sample test two', () => {
assert.equal(2*2, 5);
});
test('Async test three', async () => {
return new Promise((res, rej) => {
setTimeout(() => {
rej('Network error occured');
}, 500);
});
});The lib supports synccode & promises.
