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:
@@ -19,10 +19,6 @@ describe('A SparqlPatchModesExtractor', (): void => {
|
||||
await expect(result).rejects.toThrow(NotImplementedHttpError);
|
||||
await expect(result).rejects.toThrow('Cannot determine permissions of GET, only PATCH.');
|
||||
|
||||
result = extractor.canHandle({ ...operation, body: undefined });
|
||||
await expect(result).rejects.toThrow(NotImplementedHttpError);
|
||||
await expect(result).rejects.toThrow('Cannot determine permissions of PATCH operations without a body.');
|
||||
|
||||
result = extractor.canHandle({ ...operation, body: {} as SparqlUpdatePatch });
|
||||
await expect(result).rejects.toThrow(NotImplementedHttpError);
|
||||
await expect(result).rejects.toThrow('Cannot determine permissions of non-SPARQL patches.');
|
||||
|
||||
Reference in New Issue
Block a user