• Make an assertion that actual is greater than expected. If not then throw.

    Type Parameters

    • T

    Parameters

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

    Returns void

    Since

    24.7.0

    Example

    import { assertGreater } from "assert";

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