Skip to content

Commit

Permalink
test(users): fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
brankoconjic committed Jun 14, 2024
1 parent e231ce9 commit 445a14e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/users/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ describe("Retrieve the authenticated user", () => {

it("An error and a 401 statusCode should be returned when the `apiKey` is incorrect", async () => {
lemonSqueezySetup({ apiKey: "INCORRECT_API_KEY" });
const { error, data, statusCode } = await getAuthenticatedUser();
expect(data).toBeNull();
const { error, statusCode } = await getAuthenticatedUser();
expect(statusCode).toEqual(401);
expect(error).toBeDefined();
expect(error?.cause).toBeArray();
Expand Down

0 comments on commit 445a14e

Please sign in to comment.