We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c03b36 commit 08ae153Copy full SHA for 08ae153
1 file changed
tests/utils.test.mjs
@@ -176,10 +176,10 @@ describe('Utils test suite', () => {
176
expect(isAsyncFunction({})).toBe(false)
177
expect(isAsyncFunction({ a: 1 })).toBe(false)
178
expect(isAsyncFunction(() => {})).toBe(false)
179
- expect(isAsyncFunction(() => {})).toBe(false)
+ expect(isAsyncFunction(function () {})).toBe(false)
180
expect(isAsyncFunction(function named() {})).toBe(false)
181
expect(isAsyncFunction(async () => {})).toBe(true)
182
- expect(isAsyncFunction(async () => {})).toBe(true)
+ expect(isAsyncFunction(async function () {})).toBe(true)
183
expect(isAsyncFunction(async function named() {})).toBe(true)
184
class TestClass {
185
testSync() {}
0 commit comments