import { inferExpectedStatus } from "./httpDefaults.js";
describe("inferExpectedStatus", () => {
    it("returns 201 for POST", () => {
        expect(inferExpectedStatus("POST")).toBe(201);
        expect(inferExpectedStatus("post")).toBe(201);
    });
    it("returns 204 for DELETE", () => {
        expect(inferExpectedStatus("DELETE")).toBe(204);
        expect(inferExpectedStatus("delete")).toBe(204);
    });
    it("returns 200 for GET", () => {
        expect(inferExpectedStatus("GET")).toBe(200);
        expect(inferExpectedStatus("get")).toBe(200);
    });
    it("returns 200 for PUT", () => {
        expect(inferExpectedStatus("PUT")).toBe(200);
    });
    it("returns 200 for PATCH", () => {
        expect(inferExpectedStatus("PATCH")).toBe(200);
    });
});
