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

Method negate

lib/assert.js:45–50  ·  view source on GitHub ↗

* Performs negative assertion. * Fails if comparator function with provided arguments returns true

()

Source from the content-addressed store, hash-verified

43 * Fails if comparator function with provided arguments returns true
44 */
45 negate() {
46 this.addAssertParams.apply(this, arguments)
47 const result = this.comparator.apply(this.params, arguments)
48 if (!result) return // should increase global assertion counter
49 throw this.getFailedNegation()
50 }
51
52 /**
53 * Used to save additional parameters passed to assert/negate

Callers 15

dontSeeInThisFileMethod · 0.80
dontSeeInTitleMethod · 0.80
seeElementMethod · 0.80
seeElementInDOMMethod · 0.80
dontSeeInCurrentUrlMethod · 0.80
dontSeeInSourceMethod · 0.80
seeCookieMethod · 0.80
seeAppIsNotInstalledMethod · 0.80
seeDeviceIsUnlockedMethod · 0.80

Calls 1

getFailedNegationMethod · 0.95

Tested by

no test coverage detected