• used to perform a min <= actual <= max comparison between the minimum, maximum and actual result like:

    const t = new AftTest('description', () => null);
    await t.verify(5, between(5, 6)); // succeeds
    await t.verify(5, between(4, 5)); // succeeds
    await t.verify(5, between(-5, 10)); // succeeds
    await t.verify(5, between(0, 4)); // fails
    await t.verify(5, between(6, 10)); // fails
    await t.verify(null, between(6, 10)); // fails

    Parameters

    • minimum: number

      the minimum value the actual result can be

    • maximum: number

      the maximum value the actual result can be

    Returns NumberBetween

    a new NumberBetween instance

Generated using TypeDoc