Skip to content

Commit 08ae153

Browse files
committed
fix(test): restore anonymous function tests in isAsyncFunction()
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
1 parent 4c03b36 commit 08ae153

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/utils.test.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ describe('Utils test suite', () => {
176176
expect(isAsyncFunction({})).toBe(false)
177177
expect(isAsyncFunction({ a: 1 })).toBe(false)
178178
expect(isAsyncFunction(() => {})).toBe(false)
179-
expect(isAsyncFunction(() => {})).toBe(false)
179+
expect(isAsyncFunction(function () {})).toBe(false)
180180
expect(isAsyncFunction(function named() {})).toBe(false)
181181
expect(isAsyncFunction(async () => {})).toBe(true)
182-
expect(isAsyncFunction(async () => {})).toBe(true)
182+
expect(isAsyncFunction(async function () {})).toBe(true)
183183
expect(isAsyncFunction(async function named() {})).toBe(true)
184184
class TestClass {
185185
testSync() {}

0 commit comments

Comments
 (0)