UNPKG

fast-check

Version:

Property based testing framework for JavaScript (like QuickCheck)

9 lines (8 loc) 271 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.json = json; const jsonValue_1 = require("./jsonValue"); function json(constraints = {}) { const arb = (0, jsonValue_1.jsonValue)(constraints); return arb.map(JSON.stringify); }