Fix Wiki Deploy Post Titles
This commit is contained in:
@@ -86,6 +86,17 @@ func TestBuildNativeGeneratesAndSkipsWikiPages(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestWikiClassNamePrefersFullNameInsteadOfShortCode(t *testing.T) {
|
||||
ctx := &wikiContext{}
|
||||
got := ctx.resolveRowName("classes", map[string]any{
|
||||
"Name": map[string]any{"tlk": map[string]any{"key": "classes:wizard.name", "text": "Wizard"}},
|
||||
"Short": map[string]any{"tlk": map[string]any{"key": "classes:wizard.short", "text": "Wiz"}},
|
||||
})
|
||||
if got != "Wizard" {
|
||||
t.Fatalf("expected full class name, got %q", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestBuildAndPackageBuildsWikiOnlyWhenRequested(t *testing.T) {
|
||||
root := testProjectRoot(t)
|
||||
mkdirAll(t, filepath.Join(root, "topdata", "data", "skills"))
|
||||
|
||||
Reference in New Issue
Block a user