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

Function test

javascript/selenium-webdriver/test/lib/error_test.js:65–69  ·  view source on GitHub ↗
(ctor, code)

Source from the content-addressed store, hash-verified

63 test(error.UnsupportedOperationError, 'unsupported operation')
64
65 function test(ctor, code) {
66 it(`${ctor.name} => "${code}"`, () => {
67 runTest(new ctor('oops'), code, 'oops')
68 })
69 }
70
71 function runTest(err, code, message) {
72 let obj = error.encodeError(err)

Callers 1

error_test.jsFile · 0.70

Calls 1

runTestFunction · 0.70

Tested by

no test coverage detected