mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
13 lines
497 B
TypeScript
13 lines
497 B
TypeScript
import { PublicCredentialsExtractor } from '../../../src/authentication/PublicCredentialsExtractor';
|
|
import type { HttpRequest } from '../../../src/server/HttpRequest';
|
|
|
|
describe('A PublicCredentialsExtractor', (): void => {
|
|
const extractor = new PublicCredentialsExtractor();
|
|
|
|
it('returns the empty credentials.', async(): Promise<void> => {
|
|
const headers = {};
|
|
const result = extractor.handleSafe({ headers } as HttpRequest);
|
|
await expect(result).resolves.toEqual({});
|
|
});
|
|
});
|