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

Function assertCallback

javascript/selenium-webdriver/test/lib/testutil.js:52–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 let errback = eb ? sinon.spy(eb) : sinon.spy()
51
52 function assertCallback() {
53 assert.ok(callback.called, 'callback not called')
54 assert.ok(!errback.called, 'errback called')
55 if (callback.threw()) {
56 throw callback.exceptions[0]
57 }
58 }
59
60 function assertErrback() {
61 assert.ok(!callback.called, 'callback called')

Callers

nothing calls this directly

Calls 1

okMethod · 0.80

Tested by

no test coverage detected