Skip to content

Commit

Permalink
fix is isSequenceOf
Browse files Browse the repository at this point in the history
  • Loading branch information
mpro7 committed Apr 5, 2024
1 parent 068322f commit a0e2d00
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/api/v2/ontology/ontologies-endpoint.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,14 @@ describe("OntologiesEndpoint", () => {
expect((response.properties["http://0.0.0.0:3333/ontology/0001/anything/v2#hasListItem"] as ResourcePropertyDefinition).guiAttributes).toEqual(["hlist=<http://rdfh.ch/lists/0001/treeList>"]);

const classDefs = response.getAllClassDefinitions();
console.log(1111, classDefs)
expect(classDefs.length).toEqual(13);
expect(classDefs[0] instanceof ResourceClassDefinition).toBeTruthy();
expect((classDefs[0] as ResourceClassDefinition).id).toEqual("http://0.0.0.0:3333/ontology/0001/anything/v2#AudioSequenceThing");
expect((classDefs[0] as ResourceClassDefinition).id).toEqual("http://0.0.0.0:3333/ontology/0001/anything/v2#AudioThing");

const resClassDefs = response.getClassDefinitionsByType(ResourceClassDefinition);
expect(resClassDefs.length).toEqual(12);
expect(resClassDefs[0].id).toEqual("http://0.0.0.0:3333/ontology/0001/anything/v2#AudioSequenceThing");
expect(resClassDefs[0].id).toEqual("http://0.0.0.0:3333/ontology/0001/anything/v2#AudioThing");

const standoffClassDefs = response.getClassDefinitionsByType(StandoffClassDefinition);
expect(standoffClassDefs.length).toEqual(1);
Expand Down

0 comments on commit a0e2d00

Please sign in to comment.