dene
v2.0.0
Published
Dene | Simple Unit Test Tool for NodeJS
Downloads
32
Maintainers
Readme
Dene
Dene is a unit testing framework to test library methods etc.
Installation
npm i dene --save-dev
Tutorial
Write test cases
// dene.js
let Dene=require('dene')
let Tests={
simpleTest: () => return true,
asyncTest: () =>
new Promise((pass, fail) =>
setTimeout(pass ,1500) // Succeed after 1.5s
}
Dene(Tests)
Add your test script to package.json
"scripts":{
"test":"node dene.js"
}
Run tests at terminal
npm test
License
MIT Copyright Otag