Added unit tests for all the new widgets

This commit is contained in:
2024-02-13 12:03:56 -07:00
parent 6ba78cb4ba
commit 649f4b5e3b
16 changed files with 611 additions and 1 deletions
+4
View File
@@ -4,6 +4,10 @@ use ratatui::layout::Rect;
use ratatui::prelude::Text;
use ratatui::widgets::{Block, Paragraph, Widget};
#[cfg(test)]
#[path = "loading_block_tests.rs"]
mod loading_block_tests;
pub struct LoadingBlock<'a> {
is_loading: bool,
block: Block<'a>,