Skip to content

Commit 85c44bf

Browse files
oops
1 parent 35bc7a7 commit 85c44bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Api.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ const token = process.env.TUMBLR_TOKEN;
55
if (!token) throw new Error("No token provided");
66

77
it("should error on invalid path", async () => {
8-
const error = await accessTumblrAPI(token, "invalid/path").catch<Error>(e => e);
9-
expect(error instanceof Error).toBe(true);
8+
const response = await accessTumblrAPI(token, "invalid/path");
9+
expect(response.meta.status).toBe(404);
1010
});

0 commit comments

Comments
 (0)