fix(cv): make profile saves atomic

This commit is contained in:
cesnimda
2026-08-29 23:12:33 +02:00
parent 487c5f59a9
commit 8288923e5d
8 changed files with 127 additions and 27 deletions
+11
View File
@@ -537,4 +537,15 @@ public sealed class CvBuilderTests
Assert.Contains("class=\"paragraphs\"><p>I confirm these details.</p>", html);
}
[Fact]
public void Settings_normalization_removes_duplicate_entry_order_keys()
{
var settings = CvVariantSettingsJson.Normalize(new CvVariantSettings
{
Sections = { new CvSectionSetting { Key = "experience", ItemOrder = new() { "first", "first", "second", " " } } },
});
Assert.Equal(new[] { "first", "second" }, settings.Sections[0].ItemOrder);
}
}