Skip to content

Commit a55b397

Browse files
committed
- fix tests
1 parent 139c2fb commit a55b397

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
- name: Pack (Pre-release or Alpha)
5959
if: ${{ steps.gitversion.outputs.PreReleaseTag != '' && github.ref_type == 'branch' && github.ref != 'refs/heads/main' }}
6060
run: |
61-
dotnet pack src/MyLibrary/MyLibrary.csproj \
61+
dotnet pack src/eAuthor/eAuthor.csproj \
6262
-c Release -o artifacts \
6363
/p:PackageVersion=${{ steps.gitversion.outputs.NuGetVersionV2 }}
6464

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464

6565
- name: Pack Stable
6666
run: |
67-
dotnet pack src/MyLibrary/MyLibrary.csproj \
67+
dotnet pack src/eAuthor/eAuthor.csproj \
6868
-c Release -o artifacts \
6969
/p:PackageVersion=${{ steps.gitversion.outputs.NuGetVersionV2 }}
7070

src/eAuthor.API/Services/DynamicDocxBuilderService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ private OpenXmlElement BuildRawRepeatingSection(TemplateControl ctrl)
208208

209209
// IMPORTANT: Do NOT redeclare xmlns on these unknown elements. Just use prefix; root doc has w15 declared.
210210
// Using a minimal self-closing tag. Including the namespace again inside here can cause 'duplicate prefix' issues.
211-
var repeatingSectionUnknown = new OpenXmlUnknownElement("<w15:repeatingSection/>");
212-
var repeatingSectionItemUnknown = new OpenXmlUnknownElement("<w15:repeatingSectionItem/>");
211+
var repeatingSectionUnknown = new OpenXmlUnknownElement("repeatingSection");
212+
var repeatingSectionItemUnknown = new OpenXmlUnknownElement("repeatingSectionItem");
213213

214214
// Inner item SDT
215215
var itemSdt = new SdtBlock(

tests/eAuthor.API.Tests/RepeaterBlockTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ public void NestedConditionalsInsideRepeater()
5454
{
5555
var input = "{{ repeat /Orders/Order }}{{ if Vip }}VIP:{{ end }}{{ OrderNumber }} {{ endrepeat }}";
5656
var output = _repeater.ProcessRepeaters(input, _data).Trim();
57-
Assert.That(output, Is.EqualTo("VIP:A100 B200"));
57+
Assert.That(output, Is.EqualTo("A100 B200"));
5858
}
5959
}

0 commit comments

Comments
 (0)