@nevware21/tripwire - v0.1.8
    Preparing search index...

    Function decreasesButNotByFunc

    Export assertion functions

    • Asserts that executing the target function decreases the monitored value but NOT by the specific delta. The value MUST decrease, but the decrease amount must not equal the specified delta.

      Type Parameters

      • R
      • T = any

      Parameters

      • this: IAssertScope

        The current IAssertScope object

      • getter: T | (() => any)

        A function that returns a value to monitor, or an object containing the property to monitor

      • Optionalprop: keyof T

        The property name to monitor (only used when first argument is an object)

      • Optionaldelta: number | MsgSource

        The delta that should NOT match. This should be a positive value as a decrease is expected.

      • OptionalevalMsg: MsgSource

        Optional message to display if the assertion fails

      Returns R

      The current IAssertScope.that object