table-driven
A small and simple table driven module for NodeJS
Requirement
- NodeJS >= v7.6
Install
npm install table-driven
Basic usage
const tabledriven = const add = { return a + b} const result = console // [ 3, 7, 11 ]
Use as async
If give third argument as true then return a promise object and pass to then
or catch
as method chain.
const tabledriven = const pow = { return a ** a}
with Mocha
Also use in the testing framework. Example is;
const assert = const tabledriven =