mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Allow querying metadata.
This commit is contained in:
@@ -75,6 +75,11 @@ describe('A RepresentationMetadata', (): void => {
|
||||
expect(metadata.quads()).toBeRdfIsomorphic(inputQuads);
|
||||
});
|
||||
|
||||
it('can query quads.', async(): Promise<void> => {
|
||||
expect(metadata.quads(null, namedNode('has'), null)).toHaveLength(3);
|
||||
expect(metadata.quads(null, null, literal('otherData'))).toHaveLength(2);
|
||||
});
|
||||
|
||||
it('can change the stored identifier.', async(): Promise<void> => {
|
||||
const newIdentifier = namedNode('newNode');
|
||||
metadata.identifier = newIdentifier;
|
||||
|
||||
Reference in New Issue
Block a user