Skip to content

Commit

Permalink
test: correct expected error message to newly formatted error message
Browse files Browse the repository at this point in the history
  • Loading branch information
async3619 committed Dec 11, 2022
1 parent 85bc8ca commit d97979a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/fetcher.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ describe("Fetcher class", function () {
});

await expect(target.fetch({ url: "", retryCount: 3, retryDelay: 0 })).rejects.toThrow(
"500 (Internal Server Error)",
"HTTP Error 500: Internal Server Error",
);
expect(calledCount).toBe(4);
});
Expand All @@ -189,7 +189,7 @@ describe("Fetcher class", function () {

const [, elapsedTime] = await throttle(
expect(target.fetch({ url: "", retryCount: 3, retryDelay: 500 })).rejects.toThrow(
"500 (Internal Server Error)",
"HTTP Error 500: Internal Server Error",
),
0,
true,
Expand Down

0 comments on commit d97979a

Please sign in to comment.