()
| 584 | } |
| 585 | |
| 586 | function TEST_httpMethod() { |
| 587 | const examplePayload = "GET /test HTTP/1.1\r\n\r\n"; |
| 588 | |
| 589 | let payload = Buffer.from(examplePayload); |
| 590 | let method = httpMethod(payload); |
| 591 | |
| 592 | if (method != "GET") { |
| 593 | return fail(`Path '${method}' != 'GET'`) |
| 594 | } |
| 595 | } |
| 596 | |
| 597 | |
| 598 | function TEST_httpPathParam() { |
nothing calls this directly
no test coverage detected