Skip to content

Commit

Permalink
test: update tests to fix build:doc
Browse files Browse the repository at this point in the history
  • Loading branch information
unional committed Sep 12, 2023
1 parent 3e941ac commit 1651b0e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion type-plus/ts/array/find_first.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('for Tuple', () => {
})

it('can override empty tuple case', () => {
testType.equal<FindFirst<[], number, { caseEmptyTuple: 1 }>, 1>(true)
testType.equal<FindFirst<[], number, { $emptyTuple: 1 }>, 1>(true)
})

it('pick first type matching criteria', () => {
Expand Down
2 changes: 1 addition & 1 deletion type-plus/ts/numeric/integer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Integer<1 & { a: 1 }>, never>(true)
testType.equal<Integer<1 & { a: 1 }>, 1 & { a: 1 }>(true)
testType.equal<Integer<number & { a: 1 }>, never>(true)
})

Expand Down
4 changes: 2 additions & 2 deletions type-plus/ts/numeric/negative.non_negative.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<NotNegative<-1 & { a: 1 }>, -1 & { a: 1 }>(true)
testType.equal<NotNegative<-1n & { a: 1 }>, -1n & { a: 1 }>(true)
testType.equal<NotNegative<-1 & { a: 1 }>, never>(true)
testType.equal<NotNegative<-1n & { a: 1 }>, never>(true)
})

it('can override Then/Else', () => {
Expand Down
4 changes: 2 additions & 2 deletions type-plus/ts/numeric/negative.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Negative<-1 & { a: 1 }>>(true)
testType.never<Negative<-1n & { a: 1 }>>(true)
testType.equal<Negative<-1 & { a: 1 }>, -1 & { a: 1 }>(true)
testType.equal<Negative<-1n & { a: 1 }>, -1n & { a: 1 }>(true)
})

it('can override Then/Else', () => {
Expand Down

0 comments on commit 1651b0e

Please sign in to comment.