Skip to content

Commit

Permalink
updating throw message
Browse files Browse the repository at this point in the history
  • Loading branch information
erdimaden committed May 14, 2024
1 parent 243cd63 commit 75e9318
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/coinbase/tests/coinbase_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ describe("Coinbase tests", () => {
it("should raise an error if the user is not found", async () => {
axiosMock.onGet().reply(404);
const cbInstance = Coinbase.configureFromJson(`${PATH_PREFIX}/coinbase_cloud_api_key.json`);
await expect(cbInstance.defaultUser()).rejects.toThrow("Request failed with status code 404");
await expect(cbInstance.defaultUser()).rejects.toThrow(
"Failed to retrieve user: Request failed with status code 404",
);
});
});

0 comments on commit 75e9318

Please sign in to comment.