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

@@ -72,7 +72,7 @@ describe('ExpressHttpServer', (): void => {
.map((method: string): string => method.trim());
const allowedMethods = [ 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE' ];
expect(corsMethods).toEqual(expect.arrayContaining(allowedMethods));
expect(corsMethods.length).toBe(allowedMethods.length);
expect(corsMethods).toHaveLength(allowedMethods.length);
});
it('specifies CORS origin header if an origin was supplied.', async(): Promise<void> => {