chore: Use Jest recommended linting.

This commit is contained in:
Ruben Verborgh
2020-10-30 18:27:50 +01:00
committed by Joachim Van Herwegen
parent 0476ba8069
commit 4b4f737013
14 changed files with 68 additions and 44 deletions

View File

@@ -23,6 +23,7 @@ describe('A SingleThreadedResourceLocker', (): void => {
expect(lock).toEqual(expect.objectContaining({ release: expect.any(Function) }));
});
/* eslint-disable jest/valid-expect-in-promise */
it('blocks lock acquisition until they are released.', async(): Promise<void> => {
const results: number[] = [];
const lock1 = locker.acquire({ path: 'path' });