UNPKG

@serenity-js/assertions

Version:

Serenity/JS universal assertion library supporting all types of functional tests, including both web and REST API scenarios

24 lines 746 B
import { Expectation } from '@serenity-js/core'; /** * Produces an [expectation](https://serenity-js.org/api/core/class/Expectation/) that negates the provided `expectation`. * * ## Ensuring that the actual value does not equal the expected value * * ```ts * 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))), * ) * ``` * * @param expectation * * @group Expectations */ export declare function not<Actual>(expectation: Expectation<Actual>): Expectation<Actual>; //# sourceMappingURL=not.d.ts.map