feat(assets): 文件夹主题 - 新增多主题皮肤并同步主线

This commit is contained in:
echoD886 committed 2026-08-20 16:33:51 +08:00
commit d5895a07a6
93 files changed
+4081 -1143

No files matched your search

@@ -48,3 +48,15 @@ func TestProjectAssetFolderNameIsUniqueWithinSiblingOnly(t *testing.T) {
t.Fatal("did not expect a duplicate across different parents")
}
}
func TestValidateProjectAssetFolderTheme(t *testing.T) {
if theme, err := validateProjectAssetFolderTheme(""); err != nil || theme != "aurora" {
t.Fatalf("expected empty theme to use aurora, got %q: %v", theme, err)
}
if theme, err := validateProjectAssetFolderTheme(" pearl "); err != nil || theme != "pearl" {
t.Fatalf("expected pearl theme, got %q: %v", theme, err)
}
if _, err := validateProjectAssetFolderTheme("content-image"); err == nil {
t.Fatal("expected arbitrary content image theme to fail")
}
}