schematic-supertest
v0.1.1
Published
TypeScript and JavaScript authoring primitives for Schematic supertests
Maintainers
Readme
Supertest for TypeScript and JavaScript
npm install --save-dev schematic-supertestimport { assume, supertest } from "schematic-supertest";
export const incrementIsLarger = supertest((value: number) => {
assume(Number.isSafeInteger(value) && value < Number.MAX_SAFE_INTEGER);
if (value + 1 <= value) {
throw new Error("Increment must increase the value");
}
});For JavaScript, omit the : number annotation.
See the Getting Started Documentation.
License
This library is available under either MIT or Apache-2.0, at your option.
