Skip to content

Commit

Permalink
clean: variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
hannojg authored Jan 5, 2023
1 parent deb3fe1 commit fdabd83
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/libs/E2E/API.mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ const mocks = {
BeginSignIn: ({email}) => {
const response = require('../E2E/apiMocks/beginSignin.json');
response.onyxData.forEach((data) => {
if (d.key !== 'credentials') {
if (data.key !== 'credentials') {
return;
}
// eslint-disable-next-line no-param-reassign
d.value.login = email;
data.value.login = email;
});
return response;
},
SigninUser: ({email}) => {
const response = require('../E2E/apiMocks/signinUser.json');
response.onyxData.forEach((d) => {
if (d.key !== 'session') {
response.onyxData.forEach((data) => {
if (data.key !== 'session') {
return;
}
// eslint-disable-next-line no-param-reassign
d.value.email = email;
data.value.email = email;
});
return response;
},
Expand Down

0 comments on commit fdabd83

Please sign in to comment.