mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Use ldp: prefix in container representations.
This commit is contained in:
committed by
Joachim Van Herwegen
parent
f66096a60b
commit
ba42861699
@@ -57,6 +57,17 @@ describe.each(stores)('An LDP handler without auth using %s', (name, { storeUrn,
|
||||
await teardown();
|
||||
});
|
||||
|
||||
it('can read a folder listing.', async():
|
||||
Promise<void> => {
|
||||
const response = await resourceHelper.getResource(`${BASE}/`);
|
||||
expect(response.statusCode).toBe(200);
|
||||
expect(response.getHeaders()).toHaveProperty('content-type', 'text/turtle');
|
||||
|
||||
const data = response._getData().toString();
|
||||
expect(data).toContain(`<${BASE}/> a ldp:Container`);
|
||||
expect(response.getHeaders().link).toContain(`<${LDP.Container}>; rel="type"`);
|
||||
});
|
||||
|
||||
it('can add a file to the store, read it and delete it.', async():
|
||||
Promise<void> => {
|
||||
// POST
|
||||
|
||||
Reference in New Issue
Block a user