Skip to content

Commit

Permalink
Update tests to work with renewed applyFiltering
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofVDB1 committed Oct 28, 2024
1 parent bdc0a03 commit 9bd078f
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/oslo-generator-html/lib/templates/ap2.j2
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,10 @@
{% endif %}
<div class="grid">
<div class="col--9-12 col--1-1--s typography">
{% if ( ( data.entities | length > 0) ) %}
{% if ( ( data.classes | length > 0) ) %}
<div class="region region--no-space-top">
<p>In dit document wordt correct gebruik van de volgende entiteiten toegelicht: <br/> |
{%- for entity in data.entities %}
{%- for entity in data.classes %}
<a href="#{{ entity.applicationProfileLabel[language] }}">
{{ entity.applicationProfileLabel[language] }}</a>
|
Expand Down
26 changes: 25 additions & 1 deletion packages/oslo-generator-json-webuniversum/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
{
"baseURI": "http://example.org/ns/domain#",
"entities": [
{
"id": "http://example.org/id/class/1",
"vocabularyLabel": {
"en": "VocTestClass"
},
"applicationProfileLabel": {
"en": "ApTestClass"
},
"vocabularyDefinition": {
"en": "VocDefinition"
},
"applicationProfileDefinition": {
"en": "ApDefinition"
},
"vocabularyUsageNote": {
"en": "VocUsageNote"
},
"applicationProfileUsageNote": {
"en": "ApUsageNote"
}
}
],
"classes": [
{
"id": "http://example.org/id/class/1",
Expand Down Expand Up @@ -45,5 +68,6 @@
"en": "ApDatatypeUsageNote"
}
}
]
],
"properties": []
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,29 @@ describe('JsonWebuniversumGenerationServiceConfiguration', () => {
JSON.stringify(
{
baseURI: 'http://example.org/ns/domain#',
entities: [
{
id: 'http://example.org/id/class/1',
vocabularyLabel: {
en: 'VocTestClass',
},
applicationProfileLabel: {
en: 'ApTestClass',
},
vocabularyDefinition: {
en: 'VocDefinition',
},
applicationProfileDefinition: {
en: 'ApDefinition',
},
vocabularyUsageNote: {
en: 'VocUsageNote',
},
applicationProfileUsageNote: {
en: 'ApUsageNote',
},
},
],
classes: [
{
id: 'http://example.org/id/class/1',
Expand Down Expand Up @@ -132,6 +155,7 @@ describe('JsonWebuniversumGenerationServiceConfiguration', () => {
},
},
],
properties: [],
},
null,
2,
Expand Down

0 comments on commit 9bd078f

Please sign in to comment.