1 | "use strict";
|
2 |
|
3 | var assert = require("assert");
|
4 |
|
5 | function arbitraryAssert(arb) {
|
6 | assert(arb !== undefined && arb !== null && typeof arb === "object", "arb should be an object");
|
7 | assert(typeof arb.generator === "function" && typeof arb.generator.map === "function",
|
8 | "arb.generator should be a function");
|
9 | assert(typeof arb.shrink === "function" && typeof arb.shrink.smap === "function",
|
10 | "arb.shrink should be a function");
|
11 | assert(typeof arb.show === "function", "arb.show should be a function");
|
12 | assert(typeof arb.smap === "function", "arb.smap should be a function");
|
13 | }
|
14 |
|
15 | module.exports = arbitraryAssert;
|