Skip to content

Commit

Permalink
chore(eslint-plugin): fix invalid code in promise spread tests (#5072)
Browse files Browse the repository at this point in the history
  • Loading branch information
papermana committed May 25, 2022
1 parent 61ffa9e commit 5586ec4
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -320,7 +320,7 @@ const _ = <Component onEvent={async () => {}} />;
console.log({ ...(await Promise.resolve({ key: 42 })) });
`,
`
const getData = Promise.resolve({ key: 42 });
const getData = () => Promise.resolve({ key: 42 });
console.log({
someData: 42,
Expand All @@ -346,7 +346,7 @@ console.log({ ...Promise.resolve({ key: 42 }) });
},
{
code: `
const getData = Promise.resolve({ key: 42 });
const getData = () => Promise.resolve({ key: 42 });
console.log({
someData: 42,
Expand Down

0 comments on commit 5586ec4

Please sign in to comment.