Skip to main content

externalisFalse

Callable


  • Creates an expectation that is met when the actual boolean value is false.

    Ensuring that a given value is false

    import { actorCalled } from '@serenity-js/core'
    import { Ensure, isFalse } from '@serenity-js/assertions'
    import { Cookie } from '@serenity-js/web'

    await actorCalled('Ester').attemptsTo(
    Ensure.that(Cookie.called('example-regular-cookie').isSecure(), isFalse()),
    )

    Returns Expectation<boolean>