MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / rejectsWith

Function rejectsWith

javascript/selenium-webdriver/test/bidi/vendor_test.js:196–202  ·  view source on GitHub ↗
(promise, message)

Source from the content-addressed store, hash-verified

194
195 // Each case is checked against its own message so a failure from some other field can't pass it.
196 function rejectsWith(promise, message) {
197 return assert.rejects(promise, (e) => {
198 assert.ok(e instanceof ValidationError, e)
199 assert.match(e.message, message)
200 return true
201 })
202 }
203
204 describe('sent', function () {
205 it('serializes typed firefoxOptions under the vendor wire key', async function () {

Callers 1

vendor_test.jsFile · 0.85

Calls 2

okMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected