fix(cache): replace non-existent should_download test with get_available_image test
Swadhin Biswas committed 7 months ago
55ea99a
1 parent 664be6f
commit 55ea99a
1 file changed
+4 -3
Showing 1 changed file+4-3
▼src/image_cache.rs
+4-3
| @@ -306,8 +306,9 @@ mod tests { | ||
306 | 306 | } |
307 | 307 | |
308 | 308 | #[test] |
309 | - fn test_should_download_returns_bool() { | |
310 | - let result = should_download(); | |
311 | - assert!(result || !result); // Just verify it returns a bool | |
309 | + fn test_get_available_image() { | |
310 | + let result = get_available_image(); | |
311 | + // Should return None if no cached image, or Some(path) if cached | |
312 | + assert!(result.is_none() || result.is_some()); | |
312 | 313 | } |
313 | 314 | } |
314 | 315 | |