Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSuckerberg committed Mar 12, 2024
1 parent 35bc7a7 commit 85c44bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Error>(e => e);
expect(error instanceof Error).toBe(true);
const response = await accessTumblrAPI(token, "invalid/path");
expect(response.meta.status).toBe(404);
});

0 comments on commit 85c44bf

Please sign in to comment.