Core Modules@serenity-js/assertionsExpectationsequalsexternalequals Callableequals<T>(...answerableArguments: [expected: Answerable<T>]): Expectation<T>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 valueimport { 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 parametersTParametersexternalrest...answerableArguments: [expected: Answerable<T>]Returns Expectation<T>
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