Skip to content

Commit

Permalink
fixing linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraPinilla committed Mar 27, 2024
1 parent bbb4714 commit eaa8e91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions blocks/identity-block/features/login/default.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe("Identity Login Feature", () => {

describe("Identity Login Feature - rejected Login, general message", () => {
beforeEach(() => {
mockLogin.mockImplementation(() => Promise.reject({ code: 0 }));
mockLogin.mockRejectedValueOnce({ code: 0 });
global.grecaptcha = {
reset: jest.fn()
}
Expand Down Expand Up @@ -103,7 +103,7 @@ describe("Identity Login Feature - rejected Login, general message", () => {

describe("Identity Login Feature - rejected Login, error code 130001", () => {
beforeEach(() => {
mockLogin.mockImplementation(() => Promise.reject({ code: 130001}));
mockLogin.mockRejectedValueOnce({ code: 130001 });
global.grecaptcha = {
reset: jest.fn()
}
Expand All @@ -114,6 +114,7 @@ describe("Identity Login Feature - rejected Login, error code 130001", () => {
});

it("rejects the login", async () => {

render(<Login customFields={defaultCustomFields} />);

await waitFor(() => expect(screen.getByLabelText("identity-block.email-label")));
Expand Down

0 comments on commit eaa8e91

Please sign in to comment.