mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
chore: Use Jest recommended linting.
This commit is contained in:
committed by
Joachim Van Herwegen
parent
0476ba8069
commit
4b4f737013
@@ -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> => {
|
||||
|
||||
Reference in New Issue
Block a user