feat: introduce hanko profile element and related api changes (#495)

* feat: introduce hanko profile element and related api changes
This commit is contained in:
bjoern-m
2023-01-25 10:55:23 +01:00
committed by GitHub
parent 93ad9c4056
commit ca62cf421f
254 changed files with 13765 additions and 3955 deletions

View File

@ -157,6 +157,28 @@ describe("httpClient.put()", () => {
});
});
describe("httpClient.patch()", () => {
it("should call patch with correct args", async () => {
httpClient._fetch = jest.fn();
await httpClient.patch("/test");
expect(httpClient._fetch).toHaveBeenCalledWith("/test", {
method: "PATCH",
});
});
});
describe("httpClient.delete()", () => {
it("should call delete with correct args", async () => {
httpClient._fetch = jest.fn();
await httpClient.delete("/test");
expect(httpClient._fetch).toHaveBeenCalledWith("/test", {
method: "DELETE",
});
});
});
describe("headers.get()", () => {
it("should return headers", async () => {
const header = new Headers(xhr);