()
| 1476 | |
| 1477 | #[test] |
| 1478 | fn reordered() { |
| 1479 | let topic1 = topic("Climate change"); |
| 1480 | |
| 1481 | let change = Change::UpdateTopicSynonyms(UpdateTopicSynonyms { |
| 1482 | actor_id: "2".to_owned(), |
| 1483 | added_synonyms: SynonymList::new(), |
| 1484 | date: chrono::Utc::now(), |
| 1485 | id: Change::new_id(), |
| 1486 | parent_topics: BTreeSet::new(), |
| 1487 | removed_synonyms: SynonymList::new(), |
| 1488 | reordered: true, |
| 1489 | updated_topic: TopicInfo::from(&topic1), |
| 1490 | }); |
| 1491 | |
| 1492 | assert_eq!( |
| 1493 | change.markdown(Locale::EN, "Gnusto", None), |
| 1494 | format!( |
| 1495 | "Gnusto reordered the synonyms for [Climate change]({})", |
| 1496 | topic1.relative_url(), |
| 1497 | ), |
| 1498 | ); |
| 1499 | } |
| 1500 | |
| 1501 | #[test] |
| 1502 | fn paths() { |
nothing calls this directly
no test coverage detected