Commit f6bb582e authored by Diegodlh's avatar Diegodlh
Browse files

fetchData now rejects with an error

parent e0e40faa
......@@ -25,7 +25,7 @@ describe("HTTP Cache", () => {
it("handles not-found error", async () => {
const cache = new HttpCache(url);
return expect(cache.getData()).rejects.toMatch("response status not ok");
return expect(cache.getData()).rejects.toThrow("HTTP Error Response");
});
it("handles network error", () => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment