mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
Merge branch 'main' into versions/4.0.0
This commit is contained in:
@@ -25,7 +25,7 @@ describe('A RawBodyparser', (): void => {
|
||||
await expect(arrayifyStream(result.data)).resolves.toEqual([]);
|
||||
});
|
||||
|
||||
// https://github.com/solid/community-server/issues/498
|
||||
// https://github.com/CommunitySolidServer/CommunitySolidServer/issues/498
|
||||
it('returns empty output if the content length is 0 and there is no content type.', async(): Promise<void> => {
|
||||
input.request = guardedStreamFrom([ 'data' ]) as HttpRequest;
|
||||
input.request.headers = { 'content-length': '0' };
|
||||
|
||||
@@ -283,7 +283,7 @@ describe('A DataAccessorBasedStore', (): void => {
|
||||
expect(accessor.data[result.path].metadata.contentType).toBeUndefined();
|
||||
|
||||
const { data, metadata } = await store.getRepresentation(result);
|
||||
const quads: Quad[] = await arrayifyStream(data);
|
||||
const quads = await arrayifyStream<Quad>(data);
|
||||
expect(metadata.get(DC.terms.modified)?.value).toBe(now.toISOString());
|
||||
expect(quads.some((entry): boolean => entry.subject.value === result.path &&
|
||||
entry.object.value === 'http://test.com/coolContainer')).toBeTruthy();
|
||||
|
||||
Reference in New Issue
Block a user