refactor: Enable stricter test linting

This commit is contained in:
Joachim Van Herwegen
2023-10-27 15:53:52 +02:00
parent 6248ed0938
commit 7a007dc466
48 changed files with 179 additions and 155 deletions

View File

@@ -36,7 +36,7 @@ describe('A GreedyReadWriteLocker', (): void => {
});
it('errors if the read counter has an unexpected value.', async(): Promise<void> => {
storage.get = jest.fn().mockResolvedValue(0);
jest.spyOn(storage, 'get').mockResolvedValue(0);
await expect(locker.withReadLock(resourceId, (): number => 5)).rejects.toThrow(InternalServerError);
});
});