refactor: Bring lint config back to original strictness

This commit is contained in:
Joachim Van Herwegen
2023-10-30 14:32:21 +01:00
parent 7a007dc466
commit 3bb3004abb
52 changed files with 239 additions and 132 deletions

View File

@@ -12,6 +12,6 @@ describe('An OidcControlHandler', (): void => {
});
it('returns an empty object if there is no OIDC interaction.', async(): Promise<void> => {
await expect(handler.handle({ } as any)).resolves.toEqual({ json: { }});
await expect(handler.handle({} as any)).resolves.toEqual({ json: {}});
});
});

View File

@@ -27,7 +27,7 @@ describe('A LogoutHandler', (): void => {
expect(outputMetadata?.get(SOLID_HTTP.terms.accountCookie)?.value).toBe(cookie);
const date = outputMetadata?.get(SOLID_HTTP.terms.accountCookieExpiration);
expect(date).toBeDefined();
expect(new Date(date!.value).getTime()).toBeLessThan(new Date().getTime());
expect(new Date(date!.value).getTime()).toBeLessThan(Date.now());
expect(cookieStore.delete).toHaveBeenCalledTimes(1);
expect(cookieStore.delete).toHaveBeenLastCalledWith(cookie);
});

View File

@@ -17,7 +17,7 @@ describe('A PromptHandler', (): void => {
});
it('errors if there is no interaction.', async(): Promise<void> => {
await expect(handler.handle({ } as any)).rejects.toThrow(BadRequestHttpError);
await expect(handler.handle({} as any)).rejects.toThrow(BadRequestHttpError);
});
it('errors if the prompt is unsupported.', async(): Promise<void> => {