Commit 66cec99a authored by Winnie Hellmann's avatar Winnie Hellmann Committed by Mike Greiling

Enable promise/valid-params ESLint rule

parent 3cefab32
......@@ -46,7 +46,6 @@ rules:
promise/always-return: off
promise/no-callback-in-promise: off
promise/no-nesting: off
promise/valid-params: off
overrides:
files:
- '**/spec/**/*'
......
......@@ -78,7 +78,7 @@ describe('Grouped security reports app', () => {
waitForMutation(vm.$store, types.RECEIVE_DEPENDENCY_SCANNING_ERROR),
])
.then(done)
.catch();
.catch(done.fail);
});
it('renders error state', () => {
......@@ -192,7 +192,7 @@ describe('Grouped security reports app', () => {
waitForMutation(vm.$store, types.RECEIVE_DEPENDENCY_SCANNING_REPORTS),
])
.then(done)
.catch();
.catch(done.fail);
});
it('renders reports', () => {
......@@ -355,7 +355,7 @@ describe('Grouped security reports app', () => {
waitForMutation(vm.$store, types.RECEIVE_DEPENDENCY_SCANNING_DIFF_SUCCESS)
.then(done)
.catch();
.catch(done.fail);
});
it('should set setDependencyScanningDiffEndpoint', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment