Skip to content

Commit

Permalink
Fix fromTerm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieubosquet committed Sep 16, 2024
1 parent 1bc8695 commit f1879fb
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion rdf-js-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,20 @@ function test_datafactory_star_basequad() {
const notEqualToOtherType: boolean = quadBobAge2.equals(dataFactory.namedNode('ex:something:else'));
}

const baseQuadTerm: Quad = dataFactory.fromTerm(quadBobAge);
const baseQuadTerm: BaseQuad = dataFactory.fromTerm(quadBobAge);

const baseQuad: BaseQuad = dataFactory.fromQuad(quadBobAge);

// Test with regular Quad
const quadDataFactory: DataFactory<Quad> = <any> {};

const regularQuadBobAge: Quad = quadDataFactory.quad(
dataFactory.namedNode('ex:bob'),
dataFactory.namedNode('ex:age'),
dataFactory.literal('23'),
);

const quadTerm: Quad = quadDataFactory.fromTerm(regularQuadBobAge);
}

function test_stream() {
Expand Down

0 comments on commit f1879fb

Please sign in to comment.