diff --git a/test/groupBy.test.ts b/test/groupBy.test.ts index 6b1afef..cc074e2 100644 --- a/test/groupBy.test.ts +++ b/test/groupBy.test.ts @@ -1,4 +1,4 @@ -import { expectError, expectType } from 'tsd'; +import { expectType, expectNotType } from 'tsd'; import { toPairs, groupBy, __ } from '../es'; type Student = { score: number; name: string }; @@ -28,4 +28,4 @@ expectType>(grouped2); // toPairs returns expected const entries = toPairs({} as Record); expectType<[string, Student[]][]>(entries); -expectError<[string, Student[] | undefined][]>(entries); // this assertion was true before when groupBy returned `Partial>` +expectNotType<[string, Student[] | undefined][]>(entries); // this assertion was true before when groupBy returned `Partial>`