MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / seeResponseEquals

Method seeResponseEquals

lib/helper/JSONResponse.js:291–294  ·  view source on GitHub ↗

* Checks that response data equals to expected: * * ```js * // response.data is { error: 'Not allowed' } * * I.seeResponseEquals({ error: 'Not allowed' }) * ``` * @param {object} resp

(resp)

Source from the content-addressed store, hash-verified

289 * @param {object} resp
290 */
291 seeResponseEquals(resp) {
292 this._checkResponseReady()
293 assert.deepStrictEqual(this.response.data, resp)
294 }
295
296 /**
297 * Validates JSON structure of response using [Zod library](https://zod.dev).

Callers 1

Calls 1

_checkResponseReadyMethod · 0.95

Tested by

no test coverage detected