Skip to content

Commit

Permalink
fix watermark plugin outcome
Browse files Browse the repository at this point in the history
  • Loading branch information
mpro7 committed Apr 5, 2024
1 parent a0e2d00 commit 2a2e5b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
14 changes: 6 additions & 8 deletions src/api/admin/projects/projects-endpoint.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ describe("ProjectsEndpoint", () => {
(response: ApiResponseData<ProjectRestrictedViewSettingsResponse>) => {

expect(response.body.settings.size).toEqual("!512,512");
expect(response.body.settings.watermark).toEqual(true);
expect(response.body.settings.watermark).toEqual(false);

done();
});
Expand All @@ -705,7 +705,7 @@ describe("ProjectsEndpoint", () => {
(response: ApiResponseData<ProjectRestrictedViewSettingsResponse>) => {

expect(response.body.settings.size).toEqual("!512,512");
expect(response.body.settings.watermark).toEqual(true);
expect(response.body.settings.watermark).toEqual(false);

done();
});
Expand All @@ -728,7 +728,7 @@ describe("ProjectsEndpoint", () => {
(response: ApiResponseData<ProjectRestrictedViewSettingsResponse>) => {

expect(response.body.settings.size).toEqual("!512,512");
expect(response.body.settings.watermark).toEqual(true);
expect(response.body.settings.watermark).toEqual(false);

done();
});
Expand All @@ -755,7 +755,7 @@ describe("ProjectsEndpoint", () => {
(response: ApiResponseData<ProjectRestrictedViewSettingsResponse>) => {

expect(response.body.settings.size).toEqual("!512,512");
expect(response.body.settings.watermark).toEqual(true);
expect(response.body.settings.watermark).toEqual(false);

done();
});
Expand All @@ -781,10 +781,8 @@ describe("ProjectsEndpoint", () => {
knoraApiConnection.admin.projectsEndpoint.getProjectRestrictedViewSettingByShortname("images").subscribe(
(response: ApiResponseData<ProjectRestrictedViewSettingsResponse>) => {

console.log(111111, response.body)

expect(response.body.settings.size).toEqual("!512,512");
expect(response.body.settings.watermark).toEqual(true);
expect(response.body.settings.watermark).toEqual(false);

done();
});
Expand All @@ -811,7 +809,7 @@ describe("ProjectsEndpoint", () => {
(response: ApiResponseData<ProjectRestrictedViewSettingsResponse>) => {

expect(response.body.settings.size).toEqual("!512,512");
expect(response.body.settings.watermark).toEqual(true);
expect(response.body.settings.watermark).toEqual(false);

done();
});
Expand Down
6 changes: 3 additions & 3 deletions src/api/v2/ontology/ontologies-endpoint.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +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)
console.log(777777, 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#AudioThing");
expect((classDefs[0] as ResourceClassDefinition).id).toEqual("http://0.0.0.0:3333/ontology/0001/anything/v2#AudioSequenceThing");

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#AudioThing");
expect(resClassDefs[0].id).toEqual("http://0.0.0.0:3333/ontology/0001/anything/v2#AudioSequenceThing");

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

0 comments on commit 2a2e5b9

Please sign in to comment.