fix(api): expect TV roots in endpoint test
ci / rust (pull_request) Successful in 1m46s
ci / web (pull_request) Successful in 40s
e2e / e2e (pull_request) Successful in 1m28s

This commit is contained in:
Miguel Palhas
2026-08-22 22:17:47 +01:00
parent 46c59a15f0
commit 780bca49df
+5 -1
View File
@@ -68,12 +68,16 @@ mod tests {
.json()
.await
.expect("json");
assert_eq!(roots.len(), 2, "the two seeded movie roots: {roots:?}");
assert_eq!(roots.len(), 4, "the seeded movie and TV roots: {roots:?}");
assert_eq!(roots[0]["audience"], "main");
assert_eq!(roots[0]["policy_name"], "Movies — main");
assert_eq!(roots[1]["audience"], "kids");
assert!(roots[1]["path"]
.as_str()
.is_some_and(|p| p.contains("kids")));
assert_eq!(roots[2]["kind"], "tv");
assert_eq!(roots[2]["policy_name"], "TV — main");
assert_eq!(roots[3]["kind"], "tv");
assert_eq!(roots[3]["policy_name"], "TV — kids");
}
}