Skip to content

Commit

Permalink
test(eslint-plugin): update testcase for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Retsam committed Nov 18, 2019
1 parent 639b6b3 commit b27d7e3
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -230,7 +230,7 @@ if (x === Foo.a) {}
options: [{ checkArrayPredicates: true }],
code: `
[1,3,5].filter(() => true);
[1,2,3].find(() => false);
[1,2,3].find(() => { return false; });
// with non-literal array
function nothing(x: string[]) {
Expand All @@ -243,7 +243,7 @@ function nothing2(x: readonly string[]) {
`,
errors: [
ruleError(2, 22, 'alwaysTruthy'),
ruleError(3, 20, 'alwaysFalsy'),
ruleError(3, 29, 'alwaysFalsy'),
ruleError(7, 25, 'alwaysFalsy'),
ruleError(11, 25, 'alwaysFalsy'),
],
Expand Down

0 comments on commit b27d7e3

Please sign in to comment.