Skip to content

Commit

Permalink
fix(cloud): fix test env for optional method
Browse files Browse the repository at this point in the history
  • Loading branch information
salihozdemir committed Jan 23, 2023
1 parent a9c81ad commit a79b24e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe("useAuthProviderWithCloudConfig Hook", () => {
const { generateCloudAuthProvider } = result.current;
const { getPermissions } = generateCloudAuthProvider();

const response = await getPermissions();
const response = await getPermissions?.();
expect(response).toContain("admin");
});

Expand Down

0 comments on commit a79b24e

Please sign in to comment.