src/__tests__/helpers/fixtures.ts
Function sFull
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const sFull = (id: NamedNode, attrs: CWOpts = {}): Quadruple[] => {
const createQuad = (predicate: NamedNode, object: SomeTerm, graph = ld.add) => rdfFactory.quad(
id,
predicate,
object,
File fixtures.ts
has 266 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import rdfFactory, { NamedNode, Quad, Quadruple, SomeTerm } from "@ontologies/core";
import * as ld from "@ontologies/ld";
import * as rdfx from "@ontologies/rdf";
import * as schema from "@ontologies/schema";
import * as xsd from "@ontologies/xsd";
Function chargeLRS
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function chargeLRS(delta: Quadruple[] = [], subject: SomeNode): TestContext<React.ComponentType<any>> {
const store = new RDFStore();
const s = new Schema(store);
const lrsOpts = {
mapping: new ComponentStoreTestProxy<React.ComponentType>(s),