Skip to main content

externalnot

Callable


  • Produces an expectation that negates the provided expectation.

    Ensuring that the actual value does not equal the expected value

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

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

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

    Type parameters

    • Actual

    Parameters

    Returns Expectation<Actual>