test(02-01): add failing test for the presentations prefix

- /_presentations must be a plain 404, not the SPA shell
- A router without the presentations plugin has no public document route
This commit is contained in:
Jakub Zych
2026-10-06 18:05:09 +02:00
parent 840935d22d
commit 9986df32a4
2 changed files with 6 additions and 0 deletions

View File

@@ -165,6 +165,11 @@ func TestRoutes(t *testing.T) {
if !slices.Equal(got, want) {
t.Errorf("routes =\n%v\nwant\n%v", got, want)
}
for _, rt := range router.Routes() {
if rt.Pattern == "/prezentacje/{slugHash}" {
t.Errorf("GET /prezentacje/{slugHash} is registered without golem15.presentations")
}
}
}
func TestAdminCompiles(t *testing.T) {