Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit b90093d

Browse files
committed
feat: add OPTIONS method handling in HTTP request tests (#1166)
1 parent 9c681bf commit b90093d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/core/src/driver-test-suite/tests/raw-http-request-properties.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ export function runRawHttpRequestPropertiesTests(
185185
expect(response.status).toBe(200);
186186
const text = await response.text();
187187
expect(text).toBe("");
188+
} else if (method === "OPTIONS") {
189+
expect(response.status).toBe(204);
190+
const text = await response.text();
191+
expect(text).toBe("");
188192
} else {
189193
expect(response.ok).toBe(true);
190194
const data = (await response.json()) as any;

0 commit comments

Comments
 (0)