0.2.2 • Published 8 years ago

tesa v0.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

#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));
		});
	});
});
0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago