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

Method dontSeeResponseCodeIs

lib/helper/JSONResponse.js:109–112  ·  view source on GitHub ↗

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

(code)

Source from the content-addressed store, hash-verified

107 * @param {number} code
108 */
109 dontSeeResponseCodeIs(code) {
110 this._checkResponseReady()
111 assert.notStrictEqual(this.response.status, code)
112 }
113
114 /**
115 * Checks that the response code is 4xx

Callers 1

Calls 1

_checkResponseReadyMethod · 0.95

Tested by

no test coverage detected