Rust library to generate static websites
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: remove tailwind test

-24
-24
crates/maudit/src/assets.rs
··· 643 643 "Different content should produce different hashes" 644 644 ); 645 645 } 646 - 647 - #[test] 648 - fn test_tailwind_hash_changes_every_time() { 649 - let temp_dir = setup_temp_dir(); 650 - let style_path = temp_dir.join("tailwind_style.css"); 651 - std::fs::write(&style_path, "body { background: blue; }").unwrap(); 652 - 653 - let mut page_assets = RouteAssets::new(&RouteAssetsOptions::default()); 654 - 655 - // Add the same tailwind style multiple times with small delays 656 - let style1 = 657 - page_assets.add_style_with_options(&style_path, StyleOptions { tailwind: true }); 658 - 659 - // Small delay to ensure different timestamp 660 - std::thread::sleep(std::time::Duration::from_millis(1)); 661 - 662 - let style2 = 663 - page_assets.add_style_with_options(&style_path, StyleOptions { tailwind: true }); 664 - 665 - assert_ne!( 666 - style1.hash, style2.hash, 667 - "Tailwind styles should produce different hashes due to time-based component" 668 - ); 669 - } 670 646 }