()
| 19 | |
| 20 | #[test] |
| 21 | fn link_deleted() { |
| 22 | let f = Fixtures::copy("simple"); |
| 23 | |
| 24 | let link = link(&f, "Page title", "00001"); |
| 25 | let link_id = link.id(); |
| 26 | let repo_id = RepoId::wiki(); |
| 27 | assert!(f.git.exists(repo_id, link_id).unwrap()); |
| 28 | |
| 29 | DeleteLink { |
| 30 | actor: actor(), |
| 31 | repo_id, |
| 32 | link_id: link_id.clone(), |
| 33 | } |
| 34 | .call(f.mutation(), &redis::Noop) |
| 35 | .unwrap(); |
| 36 | |
| 37 | assert!(!f.git.exists(repo_id, link_id).unwrap()); |
| 38 | } |
| 39 | |
| 40 | #[test] |
| 41 | fn activity_log_updated() { |