@gov-cy/dsf-email-templates 2.1.10 → 2.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [v2.1.11] - 2025-10-23
|
|
9
|
+
### Changed
|
|
10
|
+
- Updated `bodyKeyValue` component to separate key from value with a line
|
|
11
|
+
|
|
8
12
|
## [v2.1.10] - 2025-10-23
|
|
9
13
|
|
|
10
14
|
### Changed
|
package/package.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
{# for each item render list item #}
|
|
27
27
|
{%- for item in params.items -%}
|
|
28
28
|
{%- if item -%}
|
|
29
|
-
<li><b>{{ item.key }}
|
|
29
|
+
<li style="padding-bottom:10px;line-height: 1.6;"><b>{{ item.key }}</b><br>{{ item.value }}</li>
|
|
30
30
|
{%- endif -%}
|
|
31
31
|
{%- endfor -%}
|
|
32
32
|
{{ closeHTML | safe }}
|
package/test/moca/unit.test.js
CHANGED
|
@@ -191,7 +191,7 @@ function renderChecks(renderedHTML, checksNum){
|
|
|
191
191
|
//check for bodyKeyValue.njk macro render as expected
|
|
192
192
|
it(checksNum+'13 `bodyKeyValue` macro render as expected', async () => {
|
|
193
193
|
//check for structure of `ol` block
|
|
194
|
-
let expectedRegex = /<body>([\s\S]*?)<ul([\s\S]*?)>\s*<li>\s*<b>\s*key1
|
|
194
|
+
let expectedRegex = /<body>([\s\S]*?)<ul([\s\S]*?)>\s*<li\s*style="padding-bottom:10px;line-height:\s*1.6;">\s*<b>\s*key1<\/b><br>value 1\s*<\/li>\s*<li\s*style="padding-bottom:10px;line-height:\s*1.6;">\s*<b>\s*key2<\/b><br>value 2\s*<\/li>\s*<\/ul>/;
|
|
195
195
|
expect(renderedHTML).to.match(expectedRegex);
|
|
196
196
|
})
|
|
197
197
|
|