Skip to content

Commit

Permalink
Remove type assertion that is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Dec 26, 2024
1 parent 7710c4f commit 61d647b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions __tests__/backend/utils/DriveBackedValue.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,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,
);
driveServiceMock.Files.get.mockReturnValueOnce(JSON.stringify("VALUE"));
driveServiceMock.Files.list
.mockReturnValueOnce(response1)
.mockReturnValueOnce(response2);
Expand Down

0 comments on commit 61d647b

Please sign in to comment.