()
| 833 | |
| 834 | #[test] |
| 835 | fn test_stash_entry_display() { |
| 836 | let entry = StashEntry { |
| 837 | index: 0, |
| 838 | view_name: "stash/test".to_string(), |
| 839 | source_view: "feature".to_string(), |
| 840 | message: "Work in progress".to_string(), |
| 841 | created_at: Utc::now(), |
| 842 | }; |
| 843 | |
| 844 | let display = entry.display(); |
| 845 | assert!(display.contains("stash@{0}")); |
| 846 | assert!(display.contains("feature")); |
| 847 | assert!(display.contains("Work in progress")); |
| 848 | } |
| 849 | |
| 850 | // Constants Tests |
| 851 |