mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Let Representations always have a body
This is relevant when the request has a content-type but no data.
This commit is contained in:
@@ -38,7 +38,12 @@ describe('An IdentityProviderHttpHandler', (): void => {
|
||||
let handler: IdentityProviderHttpHandler;
|
||||
|
||||
beforeEach(async(): Promise<void> => {
|
||||
operation = { method: 'GET', target: { path: 'http://test.com/idp' }, preferences: { type: { 'text/html': 1 }}};
|
||||
operation = {
|
||||
method: 'GET',
|
||||
target: { path: 'http://test.com/idp' },
|
||||
preferences: { type: { 'text/html': 1 }},
|
||||
body: new BasicRepresentation(),
|
||||
};
|
||||
|
||||
provider = {
|
||||
callback: jest.fn(),
|
||||
|
||||
Reference in New Issue
Block a user