Files
simple-mail-cleaner/backend/node_modules/fast-check/lib/esm/check/property/UnbiasedProperty.js
2026-01-23 01:33:35 +01:00

22 lines
656 B
JavaScript

export class UnbiasedProperty {
constructor(property) {
this.property = property;
if (this.property.runBeforeEach !== undefined && this.property.runAfterEach !== undefined) {
this.runBeforeEach = () => this.property.runBeforeEach();
this.runAfterEach = () => this.property.runAfterEach();
}
}
isAsync() {
return this.property.isAsync();
}
generate(mrng, _runId) {
return this.property.generate(mrng, undefined);
}
shrink(value) {
return this.property.shrink(value);
}
run(v, dontRunHook) {
return this.property.run(v, dontRunHook);
}
}