fix(ticket): harden lightweight backend core

This commit is contained in:
mlogclub
2026-05-02 19:19:18 +08:00
parent a06ce7074e
commit fa9d431cbe
9 changed files with 232 additions and 51 deletions
@@ -11,3 +11,13 @@ func TestNotificationPermissionMigrationRegistered(t *testing.T) {
t.Fatalf("unexpected migration remark: %q", migration.Remark)
}
}
func TestLightweightTicketPermissionMigrationRegistered(t *testing.T) {
migration, ok := migrationFuncs[8]
if !ok {
t.Fatalf("expected migration version 8 to be registered")
}
if migration.Remark != "sync lightweight ticket permissions" {
t.Fatalf("unexpected migration remark: %q", migration.Remark)
}
}