flowsight
v1.0.1
Published
Flowsight is an end to end API testing framework
Downloads
7
Readme
Flowsight
Example
/* globals flow task */
const assert = require('assert');
flow('As a user I should be able to resolve mathematics in JS', [
task('set 1', () => {
assert.ok(1, 'cannot define 1'); return 1;
}),
task('add n + 1', (n) => {
assert.equal(n + 1, 2, 'cannot add n + 1');
return n + 1;
}),
task('multiply n * 5', (n) => {
assert.equal(n * 5, 10, 'cannot add n * 5');
return n * 5;
}),
]);