feat: gate premium CV themes
CI and Deploy / test (push) Successful in 2m35s
CI and Deploy / deploy (push) Successful in 1m1s

This commit is contained in:
cesnimda
2026-07-30 23:24:19 +02:00
parent fd2c60e70f
commit 09fc2b03f7
6 changed files with 49 additions and 12 deletions
+9
View File
@@ -297,4 +297,13 @@ public sealed class CvBuilderTests
Assert.Null(await svc.GetPublicOwnerAsync(revokedSlug, default));
Assert.Equal("user-1", await svc.GetPublicOwnerAsync(v.PublicSlug, default));
}
[Fact]
public void Premium_theme_policy_keeps_three_free_themes_available()
{
Assert.Equal(3, CvThemeCatalog.Themes.Count(t => CvThemeCatalog.CanUse(t.Id, false)));
Assert.Equal(5, CvThemeCatalog.Themes.Count(t => t.Premium));
Assert.All(CvThemeCatalog.Themes, t => Assert.True(CvThemeCatalog.CanUse(t.Id, true)));
Assert.False(CvThemeCatalog.CanUse("unknown", true));
}
}