TreasureTrails/node_modules/fast-check/lib/arbitrary/webPath.js

11 lines
507 B
JavaScript
Raw Permalink Normal View History

2026-03-18 09:02:21 -05:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.webPath = webPath;
const MaxLengthFromMinLength_1 = require("./_internals/helpers/MaxLengthFromMinLength");
const UriPathArbitraryBuilder_1 = require("./_internals/builders/UriPathArbitraryBuilder");
function webPath(constraints) {
const c = constraints || {};
const resolvedSize = (0, MaxLengthFromMinLength_1.resolveSize)(c.size);
return (0, UriPathArbitraryBuilder_1.buildUriPathArbitrary)(resolvedSize);
}