Skip to content

Commit

Permalink
chore: updated test descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
grisha87 committed Oct 18, 2023
1 parent 5fff314 commit ffe3c47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/market/helpers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe("Market Helpers", () => {
});

describe("Negative cases", () => {
test("If the request will be made, but will not be a successful one, it will return an empty array", async () => {
test("It throws an error when the response from the API will not be a successful one (fetch -> response.ok)", async () => {
// Given
const mockResponse = imock<Response>(MockPropertyPolicy.StubAsProperty);
when(mockResponse.ok).thenReturn(false);
Expand All @@ -39,7 +39,7 @@ describe("Market Helpers", () => {
);
});

test("If the implementation will throw any kind of error, then it will return an empty array", async () => {
test("It throws an error when executing of fetch will fail for any reason", async () => {
// Given
mockFetch.mockImplementation(() => {
throw new Error("Something went wrong really bad!");
Expand Down

0 comments on commit ffe3c47

Please sign in to comment.