fix(cv): make profile saves atomic
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user