We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35bc7a7 commit 85c44bfCopy full SHA for 85c44bf
tests/Api.test.ts
@@ -5,6 +5,6 @@ const token = process.env.TUMBLR_TOKEN;
5
if (!token) throw new Error("No token provided");
6
7
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);
+ const response = await accessTumblrAPI(token, "invalid/path");
+ expect(response.meta.status).toBe(404);
10
});
0 commit comments