MCPcopy
hub / github.com/SeleniumHQ/selenium / assertSent

Function assertSent

javascript/selenium-webdriver/test/lib/http_test.js:506–518  ·  view source on GitHub ↗
(method, path, data, headers)

Source from the content-addressed store, hash-verified

504 }
505
506 function assertSent(method, path, data, headers) {
507 assert.ok(
508 send.calledWith(
509 sinon.match(function (value) {
510 assert.strictEqual(value.method, method)
511 assert.strictEqual(value.path, path)
512 assert.deepStrictEqual(value.data, data)
513 assert.deepStrictEqual(entries(value.headers), headers)
514 return true
515 }),
516 ),
517 )
518 }
519
520 function assertSendsSuccessfully(command) {
521 return executor.execute(command).then(function (response) {

Callers 2

http_test.jsFile · 0.85
testFunction · 0.85

Calls 3

entriesFunction · 0.85
okMethod · 0.80
matchMethod · 0.45

Tested by 1

testFunction · 0.68