+ class TestClass {
+ testSync () {}
+ async testAsync () {}
+ testArrowSync = () => {}
+ testArrowAsync = async () => {}
+ static testStaticSync () {}
+ static async testStaticAsync () {}
+ }
+ const testClass = new TestClass()
+ expect(isAsyncFunction(testClass.testSync)).toBe(false)
+ expect(isAsyncFunction(testClass.testAsync)).toBe(true)
+ expect(isAsyncFunction(testClass.testArrowSync)).toBe(false)
+ expect(isAsyncFunction(testClass.testArrowAsync)).toBe(true)
+ expect(isAsyncFunction(TestClass.testStaticSync)).toBe(false)
+ expect(isAsyncFunction(TestClass.testStaticAsync)).toBe(true)