UNPKG

@opra/testing

Version:
20 lines (19 loc) 605 B
import { ApiExpectBase } from './api-expect-base.js'; export declare class ApiExpectObject extends ApiExpectBase { get not(): ApiExpectObject; /** * Tests if Response payload matches given object * @param expected */ toMatch<T extends {}>(expected: T): this; /** * Tests if Response payload has all of provided fields. * @param fields */ toContainFields(fields: string | string[]): this; /** * Tests if Response payload only contains all of provided fields. * @param fields */ toContainAllFields(fields: string | string[]): this; }