()
| 589 | |
| 590 | #[test] |
| 591 | fn test_stash_entry_display() { |
| 592 | let entry = StashEntry { |
| 593 | index: 0, |
| 594 | view_name: "stash/test".to_string(), |
| 595 | source_view: "feature".to_string(), |
| 596 | message: "Work in progress".to_string(), |
| 597 | created_at: Utc::now(), |
| 598 | }; |
| 599 | |
| 600 | let display = entry.display(); |
| 601 | assert!(display.contains("stash@{0}")); |
| 602 | assert!(display.contains("feature")); |
| 603 | assert!(display.contains("Work in progress")); |
| 604 | } |
| 605 | |
| 606 | // Constants Tests |
| 607 |