From 60cb36b9f1eebcc2e66847cb27d9362668db27ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20D=C4=9Bdi=C4=8D?= Date: Thu, 26 Dec 2024 23:55:56 +0100 Subject: [PATCH] Remove type assertion that is no longer needed --- __tests__/backend/utils/DriveBackedValue.test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/__tests__/backend/utils/DriveBackedValue.test.ts b/__tests__/backend/utils/DriveBackedValue.test.ts index 06bbe77f..fa9b28b9 100644 --- a/__tests__/backend/utils/DriveBackedValue.test.ts +++ b/__tests__/backend/utils/DriveBackedValue.test.ts @@ -306,8 +306,7 @@ test("DriveBackedValue loads a value - the folder exists, the value exists", () }; const driveServiceMock = mockedSafeDriveService(); driveServiceMock.Files.get.mockReturnValueOnce( - // Incorrect upstream typings, string is actually permissible - JSON.stringify("VALUE") as unknown as GoogleAppsScript.Drive.Schema.File, + JSON.stringify("VALUE"), ); driveServiceMock.Files.list .mockReturnValueOnce(response1)