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

Function fakeBidi

javascript/selenium-webdriver/test/bidi/domain_test.js:32–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30// lifecycle (remote subscribe/unsubscribe, per-subscription bookkeeping) is Index's
31// job, exercised directly in test/bidi/index_test.js, not re-tested here.
32function fakeBidi() {
33 return {
34 registered: undefined,
35 async addCallback(method, handler) {
36 this.registered = { method, handler }
37 return { id: 'sub-1', unsubscribe: async () => {} }
38 },
39 }
40}
41
42describe('Domain addCallback', function () {
43 it('parses delivered payloads through the descriptor type before the handler runs', async function () {

Callers 1

domain_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected