Skip to content

Commit

Permalink
update eslint rules and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mkasper1-godaddy committed May 14, 2021
1 parent 50f8412 commit e2c9541
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
module.exports = {
extends: ['godaddy', 'plugin:jest/recommended']
extends: [ 'godaddy', 'plugin:jest/recommended' ],
rules : {
"max-params": [ 2, 5 ]
}
};
4 changes: 2 additions & 2 deletions tests/actionCreators.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ describe('ActionCreators', () => {
it('executes dataTransform', () => {
const mockData = { bogus: 'BOGUS' };
onResolved(mockData);
expect(mockDataTransform).toHaveBeenCalledWith(mockData, { params: mockParams, options:mockOptions });
expect(mockDataTransform).toHaveBeenCalledWith(mockData, { params: mockParams, options: mockOptions });
});
});

Expand All @@ -276,7 +276,7 @@ describe('ActionCreators', () => {
it('executes errorTransform', () => {
const mockError = { something: 'terrible' };
onRejected(mockError);
expect(mockErrorTransform).toHaveBeenCalledWith(mockError, { params: mockParams, options:mockOptions });
expect(mockErrorTransform).toHaveBeenCalledWith(mockError, { params: mockParams, options: mockOptions });
});
});
});
Expand Down

0 comments on commit e2c9541

Please sign in to comment.