change: Drop Node 10 support.

This commit is contained in:
Ruben Verborgh
2020-11-27 00:26:15 +01:00
committed by Joachim Van Herwegen
parent 16d447f221
commit 03ffaaed43
4 changed files with 4 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
import { namedNode, quad } from '@rdfjs/data-model';
import arrayifyStream from 'arrayify-stream';
import { Algebra } from 'sparqlalgebrajs';
import * as algebra from 'sparqlalgebrajs';
import streamifyArray from 'streamify-array';
@@ -8,7 +9,6 @@ import { RepresentationMetadata } from '../../../../src/ldp/representation/Repre
import type { HttpRequest } from '../../../../src/server/HttpRequest';
import { UnsupportedHttpError } from '../../../../src/util/errors/UnsupportedHttpError';
import { UnsupportedMediaTypeHttpError } from '../../../../src/util/errors/UnsupportedMediaTypeHttpError';
import { readableToString } from '../../../../src/util/StreamUtil';
describe('A SparqlUpdateBodyParser', (): void => {
const bodyParser = new SparqlUpdateBodyParser();
@@ -56,9 +56,8 @@ describe('A SparqlUpdateBodyParser', (): void => {
expect(result.binary).toBe(true);
expect(result.metadata).toBe(input.metadata);
// Workaround for Node 10 not exposing objectMode
expect(await readableToString(result.data)).toEqual(
'DELETE DATA { <http://test.com/s> <http://test.com/p> <http://test.com/o> }',
expect(await arrayifyStream(result.data)).toEqual(
[ 'DELETE DATA { <http://test.com/s> <http://test.com/p> <http://test.com/o> }' ],
);
});
});