diff --git a/packages/eslint-plugin/tests/rules/no-misused-promises.test.ts b/packages/eslint-plugin/tests/rules/no-misused-promises.test.ts index 24c9d4285d6..1551cfbfcf3 100644 --- a/packages/eslint-plugin/tests/rules/no-misused-promises.test.ts +++ b/packages/eslint-plugin/tests/rules/no-misused-promises.test.ts @@ -320,7 +320,7 @@ const _ = {}} />; console.log({ ...(await Promise.resolve({ key: 42 })) }); `, ` -const getData = Promise.resolve({ key: 42 }); +const getData = () => Promise.resolve({ key: 42 }); console.log({ someData: 42, @@ -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,