| 49 | |
| 50 | #[test] |
| 51 | fn topic_deleted() { |
| 52 | let f = Fixtures::copy("simple"); |
| 53 | let repo_id = RepoId::wiki(); |
| 54 | let topic_id = parse_id("00001"); |
| 55 | assert!(f.git.exists(repo_id, &topic_id).unwrap()); |
| 56 | |
| 57 | let DeleteTopicResult { |
| 58 | deleted_topic_id, .. |
| 59 | } = DeleteTopic { |
| 60 | actor: actor(), |
| 61 | repo_id, |
| 62 | topic_id: topic_id.to_owned(), |
| 63 | } |
| 64 | .call(f.mutation(), &redis::Noop) |
| 65 | .unwrap(); |
| 66 | |
| 67 | assert_eq!(topic_id, deleted_topic_id); |
| 68 | assert!(!f.git.exists(repo_id, &topic_id).unwrap()); |
| 69 | } |
| 70 | |
| 71 | #[test] |
| 72 | fn parent_topics_updated() { |