From d6a93fa5ba0d63bd6483c88cbf3495f30c8cb7b6 Mon Sep 17 00:00:00 2001 From: harris-miller Date: Sun, 4 Feb 2024 16:42:11 -0700 Subject: [PATCH] fix test --- test/groupBy.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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>`