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:
@@ -26,7 +26,7 @@ describe('A ConvertingRouterRule', (): void => {
|
||||
rule = new ConvertingRouterRule({ store: store1, supportChecker: checker1 }, defaultStore);
|
||||
|
||||
metadata = new RepresentationMetadata();
|
||||
representation = { binary: true, data: 'data!' as any, metadata };
|
||||
representation = { binary: true, data: 'data!' as any, metadata, isEmpty: false };
|
||||
});
|
||||
|
||||
it('returns the corresponding store if it supports the input.', async(): Promise<void> => {
|
||||
|
||||
Reference in New Issue
Block a user