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: ...@@ -46,7 +46,6 @@ rules:
promise/always-return: off promise/always-return: off
promise/no-callback-in-promise: off promise/no-callback-in-promise: off
promise/no-nesting: off promise/no-nesting: off
promise/valid-params: off
overrides: overrides:
files: files:
- '**/spec/**/*' - '**/spec/**/*'
......
...@@ -78,7 +78,7 @@ describe('Grouped security reports app', () => { ...@@ -78,7 +78,7 @@ describe('Grouped security reports app', () => {
waitForMutation(vm.$store, types.RECEIVE_DEPENDENCY_SCANNING_ERROR), waitForMutation(vm.$store, types.RECEIVE_DEPENDENCY_SCANNING_ERROR),
]) ])
.then(done) .then(done)
.catch(); .catch(done.fail);
}); });
it('renders error state', () => { it('renders error state', () => {
...@@ -192,7 +192,7 @@ describe('Grouped security reports app', () => { ...@@ -192,7 +192,7 @@ describe('Grouped security reports app', () => {
waitForMutation(vm.$store, types.RECEIVE_DEPENDENCY_SCANNING_REPORTS), waitForMutation(vm.$store, types.RECEIVE_DEPENDENCY_SCANNING_REPORTS),
]) ])
.then(done) .then(done)
.catch(); .catch(done.fail);
}); });
it('renders reports', () => { it('renders reports', () => {
...@@ -355,7 +355,7 @@ describe('Grouped security reports app', () => { ...@@ -355,7 +355,7 @@ describe('Grouped security reports app', () => {
waitForMutation(vm.$store, types.RECEIVE_DEPENDENCY_SCANNING_DIFF_SUCCESS) waitForMutation(vm.$store, types.RECEIVE_DEPENDENCY_SCANNING_DIFF_SUCCESS)
.then(done) .then(done)
.catch(); .catch(done.fail);
}); });
it('should set setDependencyScanningDiffEndpoint', () => { 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