interface ReplaceProperty<K> {
    replaceValue(value: K): this;
    restore(): void;
}

Type Parameters

  • K

Methods

  • Change the value of the property.

    Parameters

    • value: K

    Returns this

  • Restore property to its original value known at the time of mocking.

    Returns void