refactor(cv): centralize tailored templates
This commit is contained in:
@@ -520,6 +520,20 @@ public sealed class JobApplicationsApplicationPackageTests
|
||||
Assert.Contains("curved", edinburgh.Html, StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Tailored_template_catalog_preserves_legacy_ids_and_defaults()
|
||||
{
|
||||
Assert.Equal(
|
||||
new[] { "ats-minimal", "harvard", "auckland", "edinburgh", "monarch", "fjord" },
|
||||
TailoredCvTemplateCatalog.Templates.Select(template => template.Id));
|
||||
Assert.Equal("ats-minimal", TailoredCvTemplateCatalog.NormalizeId("legacy-text"));
|
||||
Assert.Equal("ats-minimal", TailoredCvTemplateCatalog.NormalizeId("unknown"));
|
||||
Assert.Equal("brick", TailoredCvTemplateCatalog.Resolve("harvard").AccentColor);
|
||||
Assert.Contains("Harvard template", TailoredCvTemplateCatalog.Resolve("harvard").RewriteGuidance);
|
||||
Assert.Equal("#047857", TailoredCvTemplateCatalog.ResolveAccent("emerald"));
|
||||
Assert.Equal("#123456", TailoredCvTemplateCatalog.ResolveAccent("#123456"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Template_renderer_wraps_long_content_and_escapes_sidebar_values()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user