Merge branch 'main' into versions/4.0.0

This commit is contained in:
Joachim Van Herwegen
2022-03-29 14:54:59 +02:00
39 changed files with 625 additions and 212 deletions

View File

@@ -283,7 +283,7 @@ describe.each(stores)('An LDP handler allowing all requests %s', (name, { storeC
expect(await deleteResource(containerUrl)).toBeUndefined();
});
// https://github.com/solid/community-server/issues/498
// https://github.com/CommunitySolidServer/CommunitySolidServer/issues/498
it('accepts a GET with Content-Length: 0.', async(): Promise<void> => {
// PUT
const documentUrl = `${baseUrl}foo/bar`;

View File

@@ -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' };

View File

@@ -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();