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 638e5f7 commit dd3f010
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -220,7 +220,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 @@ -233,7 +233,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 dd3f010

Please sign in to comment.