Function assertNotStrictEquals

  • Make an assertion that actual and expected are not strictly equal. If the values are strictly equal then throw.

    Type Parameters

    • T

    Parameters

    • actual: T
    • expected: T
    • Optional msg: string

    Returns void

    Since

    24.7.0

    Example

    import { assertNotStrictEquals } from "assert";

    assertNotStrictEquals(1, 1); // Doesn't throw
    assertNotStrictEquals(1, 2); // Throws