mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: failing conversion test due to N3 update
This commit is contained in:
parent
db04c55196
commit
f08e97b80c
@ -1,4 +1,3 @@
|
|||||||
import { Readable } from 'stream';
|
|
||||||
import { namedNode, triple } from '@rdfjs/data-model';
|
import { namedNode, triple } from '@rdfjs/data-model';
|
||||||
import arrayifyStream from 'arrayify-stream';
|
import arrayifyStream from 'arrayify-stream';
|
||||||
import streamifyArray from 'streamify-array';
|
import streamifyArray from 'streamify-array';
|
||||||
@ -29,8 +28,7 @@ describe('A QuadToTurtleConverter', (): void => {
|
|||||||
} as Representation;
|
} as Representation;
|
||||||
const preferences: RepresentationPreferences = { type: [{ value: 'text/turtle', weight: 1 }]};
|
const preferences: RepresentationPreferences = { type: [{ value: 'text/turtle', weight: 1 }]};
|
||||||
const result = await converter.handle({ identifier, representation, preferences });
|
const result = await converter.handle({ identifier, representation, preferences });
|
||||||
expect(result).toEqual({
|
expect(result).toMatchObject({
|
||||||
data: expect.any(Readable),
|
|
||||||
dataType: DATA_TYPE_BINARY,
|
dataType: DATA_TYPE_BINARY,
|
||||||
metadata: {
|
metadata: {
|
||||||
contentType: 'text/turtle',
|
contentType: 'text/turtle',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user