@kayahr/assert
    Preparing search index...

    Function assertNotEquals

    • Asserts that the two values are not recursively equal. Arrays are considered equal when the size and their items (and positions) are equal. Objects are considered equal when they are of the same type and their properties are equal.

      When the actual value is an object with an equals method then this method is called to determine equality.

      Type Parameters

      • T
      • S

      Parameters

      • actual: S

        The actual value to compare.

      • expected: T

        The expected value to compare with.

      • Optionalreason: string

        Optional reason added to exception message when assertion fails.

      Returns asserts actual is Exclude<S, T>

      AssertionError when values are equal.