mirror of
https://github.com/SkyfallWasTaken/arcade-monitor.git
synced 2025-05-23 20:13:04 +00:00
Clean up test
This commit is contained in:
parent
3d7a3a9d44
commit
01ea8485e8
3 changed files with 18 additions and 1 deletions
|
@ -45,6 +45,7 @@ pub fn diff_items(old: ShopItem, new: ShopItem) -> Option<String> {
|
|||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::*;
|
||||
use indoc::indoc;
|
||||
|
||||
#[test]
|
||||
fn price_diff() {
|
||||
|
@ -62,7 +63,13 @@ mod test {
|
|||
|
||||
assert_eq!(
|
||||
diff_items(old, new),
|
||||
Some("*Item updated*\n*Name:* Test\n*Price:* 1 → 2".into())
|
||||
Some(
|
||||
indoc! {"
|
||||
*Item updated*
|
||||
*Name:* Test
|
||||
*Price:* 1 → 2"}
|
||||
.into()
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue