diff --git a/tests/Api.test.ts b/tests/Api.test.ts index 4ab407d..183d1cf 100644 --- a/tests/Api.test.ts +++ b/tests/Api.test.ts @@ -5,6 +5,6 @@ const token = process.env.TUMBLR_TOKEN; if (!token) throw new Error("No token provided"); it("should error on invalid path", async () => { - const error = await accessTumblrAPI(token, "invalid/path").catch(e => e); - expect(error instanceof Error).toBe(true); + const response = await accessTumblrAPI(token, "invalid/path"); + expect(response.meta.status).toBe(404); });