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

Method seeResponseCodeIsSuccessful

lib/helper/JSONResponse.js:146–149  ·  view source on GitHub ↗

* Checks that the response code is 2xx * Use it instead of seeResponseCodeIs(200) if server can return 204 instead. * * ```js * I.seeResponseCodeIsSuccessful(); * ```

()

Source from the content-addressed store, hash-verified

144 * ```
145 */
146 seeResponseCodeIsSuccessful() {
147 this._checkResponseReady()
148 assert(this.response.status >= 200 && this.response.status < 300)
149 }
150
151 /**
152 * Checks for deep inclusion of a provided json in a response data.

Callers 4

REST_test.jsFile · 0.80
GraphQL_test.jsFile · 0.80
config_test.jsFile · 0.80

Calls 1

_checkResponseReadyMethod · 0.95

Tested by

no test coverage detected