diff --git a/uploader.test.js b/uploader.test.js index 5c00e999..e5007c3d 100644 --- a/uploader.test.js +++ b/uploader.test.js @@ -39,7 +39,7 @@ describe("pinata", () => { it("throws error when pinataKey is empty", async () => { await expect( uploader.upload({ ...options, path: "./data", service: "pinata" }) - ).rejects.toThrow("[pinata] API Key is empty"); + ).rejects.toThrow("[pinata] Key is empty. (input `pinataKey`)"); }); it("throws error when pinataSecret is empty", async () => { @@ -58,7 +58,7 @@ describe("filebase", () => { it("throws error when filebaseKey is empty", async () => { await expect( uploader.upload({ ...options, path: "./data", service: "filebase" }) - ).rejects.toThrow("filebaseKey is empty"); + ).rejects.toThrow("[filebase] Key is empty. (input `filebaseKey`)"); }); it("throws error when filebaseSecret is empty", async () => { @@ -69,6 +69,6 @@ describe("filebase", () => { service: "filebase", filebaseKey: ".", }) - ).rejects.toThrow("filebaseSecret is empty"); + ).rejects.toThrow("[filebase] Secret is empty. (input `filebaseSecret`)"); }); });