Skip to content

Commit

Permalink
test: add two failing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
macklinu committed May 24, 2018
1 parent 011446b commit 3963ab8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions __tests__/no-identity-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ ruleTester.run('no-identity-handlers', rule, {
'somePromise().then(func, func)',
'getObject().then(({ a, b, c }) => ({ a, b, c: c, d: calculate(a, b, c) }))',
'getObject().then(({ a: rename, b, c }) => ({ rename, b, c }))',
'getObject().then(({ a, b, c }) => { return { a, b: c, c: b } })',
'getArray().then(([a, b]) => [a, b, ...getSomeOtherArray()])',
'getArray().then(([a, b]) => [b, a])',

// edge cases that aren't really valid but shouldn't throw or report
'Promise.resolve(2).then()',
Expand Down

0 comments on commit 3963ab8

Please sign in to comment.