(method, path, data, headers)
| 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) { |