mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Replace dataType by binary flag
This commit is contained in:
committed by
Joachim Van Herwegen
parent
385e1a4cdf
commit
c5c5d13570
@@ -4,7 +4,6 @@ import { Algebra } from 'sparqlalgebrajs';
|
||||
import streamifyArray from 'streamify-array';
|
||||
import { SparqlUpdateBodyParser } from '../../../../src/ldp/http/SparqlUpdateBodyParser';
|
||||
import { HttpRequest } from '../../../../src/server/HttpRequest';
|
||||
import { DATA_TYPE_BINARY } from '../../../../src/util/ContentTypes';
|
||||
import { UnsupportedHttpError } from '../../../../src/util/errors/UnsupportedHttpError';
|
||||
import { UnsupportedMediaTypeHttpError } from '../../../../src/util/errors/UnsupportedMediaTypeHttpError';
|
||||
|
||||
@@ -34,7 +33,7 @@ describe('A SparqlUpdateBodyParser', (): void => {
|
||||
namedNode('http://test.com/p'),
|
||||
namedNode('http://test.com/o'),
|
||||
) ]);
|
||||
expect(result.dataType).toBe(DATA_TYPE_BINARY);
|
||||
expect(result.binary).toBe(true);
|
||||
expect(result.metadata).toEqual({
|
||||
raw: [],
|
||||
profiles: [],
|
||||
|
||||
Reference in New Issue
Block a user