MCPcopy
hub / github.com/codeceptjs/CodeceptJS / seeResponseCodeIs

Method seeResponseCodeIs

lib/helper/JSONResponse.js:95–98  ·  view source on GitHub ↗

* Checks that response code is equal to the provided one * * ```js * I.seeResponseCodeIs(200); * ``` * * @param {number} code

(code)

Source from the content-addressed store, hash-verified

93 * @param {number} code
94 */
95 seeResponseCodeIs(code) {
96 this._checkResponseReady()
97 assert.strictEqual(this.response.status, code, 'Response code is not the same as expected')
98 }
99
100 /**
101 * Checks that response code is not equal to the provided one

Callers 1

Calls 1

_checkResponseReadyMethod · 0.95

Tested by

no test coverage detected