()
| 1616 | |
| 1617 | #[test] |
| 1618 | fn updated_title() { |
| 1619 | let topic1 = topic("Climate change"); |
| 1620 | let link = link("Reddit", "https://www.reddit.com"); |
| 1621 | |
| 1622 | let change = Change::UpsertLink(UpsertLink { |
| 1623 | actor_id: "2".to_owned(), |
| 1624 | date: chrono::Utc::now(), |
| 1625 | id: Change::new_id(), |
| 1626 | parent_topics: BTreeSet::from([topic1.topic_id().to_owned()]), |
| 1627 | previous_title: Some("Redis".to_owned()), |
| 1628 | upserted_link: LinkInfo::from(&link), |
| 1629 | add_parent_topic: None, |
| 1630 | }); |
| 1631 | |
| 1632 | assert_eq!( |
| 1633 | change.markdown(Locale::EN, "Gnusto", None), |
| 1634 | format!( |
| 1635 | r#"Gnusto changed the title of [Redis](https://www.reddit.com) to "Reddit""#, |
| 1636 | ), |
| 1637 | ); |
| 1638 | } |
| 1639 | |
| 1640 | #[test] |
| 1641 | fn paths() { |
nothing calls this directly
no test coverage detected