[insight] Goals and rewards: a goal this month (its tank, what is needed, the pace, the split between its ways, where money could come from), medals and challenges from complete periods, the cancel letter in Czech

This commit is contained in:
2026-11-07 22:39:54 +01:00
parent c3cb1dd060
commit 03d2afd4dc
9 changed files with 1079 additions and 20 deletions
@@ -178,6 +178,10 @@ fn the_cancel_kit() {
let kit = cancel_kit(wedos);
assert_eq!(kit.url, None, "an unknown provider gets the email only");
assert!(kit.mailto().starts_with("mailto:?subject="));
let kit = fiscus_insight::cancel::cancel_kit_in(netflix, fiscus_ledger::invoice::Language::Cs);
assert_eq!(kit.email_subject, "Zrušení předplatného Netflix");
assert!(kit.email_body.starts_with("Dobrý den,") && kit.email_body.contains("259,00 Kč") && kit.email_body.contains("měsíční"), "{}", kit.email_body);
assert_eq!(kit.url.as_deref(), Some("https://www.netflix.com/cancelplan"), "the same page in either language");
}
#[test]