Skip to main content

externalequals

Callable


  • Produces an expectation that is met when the actual value is equal to the resolved value of expectedValue.

    Note that the equality check performs comparison by value using TinyTypes equal.

    Ensuring that the actual value equals expected value

    import { actorCalled } from '@serenity-js/core'
    import { Ensure, equals } from '@serenity-js/assertions'

    const actual = { name: 'apples' }
    const expected = { name: 'apples' }

    await actorCalled('Ester').attemptsTo(
    Ensure.that(actual, equals(expected)),
    )

    Type parameters

    • T

    Parameters

    • externalrest...answerableArguments: [expected: Answerable<T>]

    Returns Expectation<T>