Skip to content

Commit

Permalink
Change array value
Browse files Browse the repository at this point in the history
  • Loading branch information
davioliveiira committed Nov 11, 2021
1 parent 2318ed2 commit 60e8425
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Cypress.Commands.add(
scope: 'web',
email,
password,
disclaimers: Array.from(Array(1).keys()),
disclaimers: Array.from(Array(2).keys()),
},
});

Expand Down
2 changes: 1 addition & 1 deletion packages/web/services/__tests__/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ describe('register', () => {
expect(response).toEqual(registerReturnedData);
expect(fetchMock).toHaveFetched(registerEndpoint, {
method: 'POST',
body: { ...user, disclaimers: Array.from(Array(1).keys()) },
body: { ...user, disclaimers: Array.from(Array(2).keys()) },
});
});
});
Expand Down
2 changes: 1 addition & 1 deletion packages/web/services/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export async function register(email, password) {
scope: 'web',
email,
password,
disclaimers: Array.from(Array(1).keys()),
disclaimers: Array.from(Array(2).keys()),
}).then((response) => response.data);
}

Expand Down

0 comments on commit 60e8425

Please sign in to comment.