From 1651b0e63ffbcdda811a7f49325e9d9dc33d789b Mon Sep 17 00:00:00 2001 From: unional Date: Tue, 12 Sep 2023 12:47:20 -0700 Subject: [PATCH] test: update tests to fix build:doc --- type-plus/ts/array/find_first.spec.ts | 2 +- type-plus/ts/numeric/integer.spec.ts | 2 +- type-plus/ts/numeric/negative.non_negative.spec.ts | 4 ++-- type-plus/ts/numeric/negative.spec.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/type-plus/ts/array/find_first.spec.ts b/type-plus/ts/array/find_first.spec.ts index e7807e3b01..55e525879d 100644 --- a/type-plus/ts/array/find_first.spec.ts +++ b/type-plus/ts/array/find_first.spec.ts @@ -43,7 +43,7 @@ describe('for Tuple', () => { }) it('can override empty tuple case', () => { - testType.equal, 1>(true) + testType.equal, 1>(true) }) it('pick first type matching criteria', () => { diff --git a/type-plus/ts/numeric/integer.spec.ts b/type-plus/ts/numeric/integer.spec.ts index b53be1eb8e..967965ab02 100644 --- a/type-plus/ts/numeric/integer.spec.ts +++ b/type-plus/ts/numeric/integer.spec.ts @@ -67,7 +67,7 @@ it('returns T if T is union of mixing integers of number and bigint', () => { }) it('returns T if T is intersection of number', () => { - testType.equal, never>(true) + testType.equal, 1 & { a: 1 }>(true) testType.equal, never>(true) }) diff --git a/type-plus/ts/numeric/negative.non_negative.spec.ts b/type-plus/ts/numeric/negative.non_negative.spec.ts index fdf72aba90..40287712c4 100644 --- a/type-plus/ts/numeric/negative.non_negative.spec.ts +++ b/type-plus/ts/numeric/negative.non_negative.spec.ts @@ -63,8 +63,8 @@ it('returns never if T is union with negative numeric values', () => { }) it('returns never if T is intersection of negative number', () => { - testType.equal, -1 & { a: 1 }>(true) - testType.equal, -1n & { a: 1 }>(true) + testType.equal, never>(true) + testType.equal, never>(true) }) it('can override Then/Else', () => { diff --git a/type-plus/ts/numeric/negative.spec.ts b/type-plus/ts/numeric/negative.spec.ts index 6fe77fdb0c..f259e10659 100644 --- a/type-plus/ts/numeric/negative.spec.ts +++ b/type-plus/ts/numeric/negative.spec.ts @@ -66,8 +66,8 @@ it('returns T if T is union with negative numeric values', () => { }) it('returns T if T is intersection of negative number', () => { - testType.never>(true) - testType.never>(true) + testType.equal, -1 & { a: 1 }>(true) + testType.equal, -1n & { a: 1 }>(true) }) it('can override Then/Else', () => {