UNPKG

fast-check

Version:

Property based testing framework for JavaScript (like QuickCheck)

8 lines (7 loc) 336 B
import { resolveSize } from './_internals/helpers/MaxLengthFromMinLength.js'; import { buildUriPathArbitrary } from './_internals/builders/UriPathArbitraryBuilder.js'; export function webPath(constraints) { const c = constraints || {}; const resolvedSize = resolveSize(c.size); return buildUriPathArbitrary(resolvedSize); }