mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Bring lint config back to original strictness
This commit is contained in:
@@ -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: {}});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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> => {
|
||||
|
||||
Reference in New Issue
Block a user