mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Add ContentTypeReplacer to conversion chain
This commit is contained in:
@@ -97,4 +97,14 @@ describe('A ContentTypeReplacer', (): void => {
|
||||
expect(result.data).toBe(data);
|
||||
expect(result.metadata.contentType).toBe('application/trig');
|
||||
});
|
||||
|
||||
it('returns all matching output types.', async(): Promise<void> => {
|
||||
await expect(converter.getOutputTypes('application/n-triples')).resolves.toEqual({
|
||||
'text/turtle': 1,
|
||||
'application/trig': 1,
|
||||
'application/n-quads': 1,
|
||||
'application/octet-stream': 1,
|
||||
'internal/anything': 1,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user