tesa
v0.2.2
Published
Framework agnostic function argument testing
Downloads
12
Readme
#Framework agnostic function argument testing
##Install
$ npm install tesa
###Use
####with Mocha
import { describe, it } from 'mocha';
import use, * as u from 'tesa';
describe("Foo", () => {
describe("#bar", () => {
const instance = new Foo();
it("should require a positive integer as first and a nonempty string as second argument", () => {
use([
u.TYPE_NUMBER_INT_POS,
], [
u.TYPE_STRING_NONEMPTY
], (first, second) => instance.bar(first, second));
});
});
});