Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add test for simple aliasing and referencing
  • Loading branch information
ianobermiller committed Jan 25, 2023
commit 211af2ab7c664d093a12394d65a54f7c0e4b299b
1 change: 1 addition & 0 deletions tests/lib/rules/sort-destructure-keys.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ function testsWithParser(parser, parserOptions = {}) {
`const {c, b, d: { e }, a = e} = someObj;`,
`const {c, b, d: [e], a = e} = someObj;`,
`const {c, b, d: [, e], a = e} = someObj;`,
`const {c, b, d: e, a = e} = someObj;`,
],
invalid: [
{
Expand Down