From 5f7188e588c76ccb3367856b93f90127249e6f69 Mon Sep 17 00:00:00 2001 From: Raquel Arrojo Lopez Date: Thu, 5 Dec 2024 09:12:10 +0100 Subject: [PATCH] Small change in tests --- lib/test/hal-api-caller.test.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/test/hal-api-caller.test.js b/lib/test/hal-api-caller.test.js index 2231393..9e3d9ae 100644 --- a/lib/test/hal-api-caller.test.js +++ b/lib/test/hal-api-caller.test.js @@ -15,7 +15,7 @@ describe("Apicaller functions test", () => { mockAxios.restore(); }); - it("should make a successful OPTIONS request and return HalResponse", async () => { + it("Should make a successful OPTIONS request and return HalResponse", async () => { const url = "https://example.com"; const headers = { CustomHeader: "CustomValue" }; const responseData = optionsResponse; @@ -30,7 +30,7 @@ describe("Apicaller functions test", () => { expect(result.halResource.getTitle()).toEqual("Options available on Quote ID"); }); - it("should make a successful GET request and return HalResponse", async () => { + it("Should make a successful GET request and return HalResponse", async () => { const url = "https://example.com"; const headers = { CustomHeader: "CustomValue" }; const responseData = getResponse; @@ -45,7 +45,7 @@ describe("Apicaller functions test", () => { expect(result.halResource.getItems().length).toBe(10); }); - it("should make a successful PATCH request", async () => { + it("Should make a successful PATCH request", async () => { const url = "https://example.com"; const body = { data: "updatedData" }; const headers = { CustomHeader: "CustomValue" }; @@ -61,7 +61,7 @@ describe("Apicaller functions test", () => { expect(result.body).toEqual(responseData); }); - it("should handle PATCH request failure", async () => { + it("Should handle PATCH request failure", async () => { const url = "https://example.com"; const body = { data: "updatedData" }; const headers = { CustomHeader: "CustomValue" }; @@ -71,7 +71,7 @@ describe("Apicaller functions test", () => { await expect(apicaller.patch({ url, body, headers })).rejects.toThrow("Request failed with status code 500"); }); - it("should make a successful POST request", async () => { + it("Should make a successful POST request", async () => { const url = "https://example.com"; const body = { name: "New Resource" }; const headers = { CustomHeader: "CustomValue" }; @@ -87,7 +87,7 @@ describe("Apicaller functions test", () => { expect(result.body).toEqual(responseData); }); - it("should handle POST request failure", async () => { + it("Should handle POST request failure", async () => { const url = "https://example.com"; const body = { name: "New Resource" }; const headers = { CustomHeader: "CustomValue" }; @@ -97,7 +97,7 @@ describe("Apicaller functions test", () => { await expect(apicaller.post({ url, body, headers })).rejects.toThrow("Request failed with status code 404"); }); - it("should make a successful PUT request", async () => { + it("Should make a successful PUT request", async () => { const url = "https://example.com"; const body = { name: "Updated Resource" }; const headers = { CustomHeader: "CustomValue" }; @@ -113,7 +113,7 @@ describe("Apicaller functions test", () => { expect(result.body).toEqual(responseData); }); - it("should make a successful DELETE request", async () => { + it("Should make a successful DELETE request", async () => { const url = "https://example.com"; const headers = { CustomHeader: "CustomValue" }; const responseData = { success: true }; @@ -128,7 +128,7 @@ describe("Apicaller functions test", () => { expect(result.body).toEqual(responseData); }); - it("should handle DELETE request failure", async () => { + it("Should handle DELETE request failure", async () => { const url = "https://example.com"; const headers = { CustomHeader: "CustomValue" }; @@ -137,7 +137,7 @@ describe("Apicaller functions test", () => { await expect(apicaller.del({ url, headers })).rejects.toThrow("Request failed with status code 403"); }); - it("should handle OPTIONS request failure", async () => { + it("Should handle OPTIONS request failure", async () => { const url = "https://example.com"; const headers = { CustomHeader: "CustomValue" };