From 85c44bf79bae2e48c611e25724650771cb0f2f7e Mon Sep 17 00:00:00 2001 From: Mark Suckerberg Date: Mon, 11 Mar 2024 22:08:17 -0500 Subject: [PATCH] oops --- tests/Api.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); });