Skip to main content

Function: webFragments()

webFragments(constraints?): Arbitrary<string>

Defined in: packages/fast-check/src/arbitrary/webFragments.ts:30

For fragments of an URI (web included)

According to RFC 3986

eg.: In the url https://domain/plop?page=1#hello=1&world=2, ?hello=1&world=2 are query parameters

Parameters

ParameterTypeDescription
constraintsWebFragmentsConstraintsConstraints to apply when building instances (since 2.22.0)

Returns

Arbitrary<string>

Remarks

Since 1.14.0