| 1778 | |
| 1779 | #[test] |
| 1780 | fn parent_references() { |
| 1781 | // Show the change in the activity log for any parent topics, even though the parent |
| 1782 | // topics aren't being updated with the change. |
| 1783 | let topic1 = topic("Climate change"); |
| 1784 | let change = change(&topic1, TimerangePrefixFormat::None); |
| 1785 | |
| 1786 | if let Change::UpsertTopicTimerange(UpsertTopicTimerange { parent_topics, .. }) = change |
| 1787 | { |
| 1788 | assert!(!parent_topics.is_empty()); |
| 1789 | } else { |
| 1790 | unreachable!("expected UpsertTopicTimerange"); |
| 1791 | } |
| 1792 | } |
| 1793 | } |
| 1794 | } |