UNPKG

fast-check

Version:

Property based testing framework for JavaScript (like QuickCheck)

22 lines (21 loc) 656 B
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); } }