diff --git a/packages/type-plus/src/class/AnyConstructor.spec.ts b/packages/type-plus/src/class/AnyConstructor.spec.ts index 7e92de33d..0ebbb485c 100644 --- a/packages/type-plus/src/class/AnyConstructor.spec.ts +++ b/packages/type-plus/src/class/AnyConstructor.spec.ts @@ -3,13 +3,15 @@ import { test } from '@jest/globals' import type { AnyConstructor } from '../index.js' test('basic', () => { - const a = (() => {}) as any as AnyConstructor + // biome-ignore lint/complexity/useArrowFunction: on purpose + const a = (function () { }) as any as AnyConstructor new a() }) test('specify params with tuple', () => { - const a = (() => {}) as any as AnyConstructor<[count: number, value: string]> + // biome-ignore lint/complexity/useArrowFunction: on purpose + const a = (function () { }) as any as AnyConstructor<[count: number, value: string]> new a(1, 'a') })