(type, message)
| 494 | } |
| 495 | |
| 496 | function checkError(type, message) { |
| 497 | return function (e) { |
| 498 | if (e instanceof type) { |
| 499 | assert.strictEqual(e.message, message) |
| 500 | } else { |
| 501 | throw e |
| 502 | } |
| 503 | } |
| 504 | } |
| 505 | |
| 506 | function assertSent(method, path, data, headers) { |
| 507 | assert.ok( |