feat: Use rdf-vocabulary library

This commit is contained in:
Joachim Van Herwegen
2024-09-06 09:17:29 +02:00
parent 58574eec07
commit 6d5f56cfe4
15 changed files with 136 additions and 239 deletions

View File

@@ -1,3 +1,4 @@
import 'jest-rdf';
import { DataFactory, Parser } from 'n3';
import type { Operation } from '../../../../../src/http/Operation';
import { BasicRepresentation } from '../../../../../src/http/representation/BasicRepresentation';
@@ -34,7 +35,7 @@ describe('A WebhookWebId', (): void => {
expect(turtle.data).toBeDefined();
const quads = new Parser({ baseIRI: operation.target.path }).parse(await readableToString(turtle.data!));
expect(quads).toHaveLength(1);
expect(quads).toEqual([ quad(
expect(quads).toEqualRdfQuadArray([ quad(
namedNode('http://example.com/.notifications/webhooks/webid'),
SOLID.terms.oidcIssuer,
namedNode('http://example.com'),