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
+14
View File
@@ -0,0 +1,14 @@
#[cfg(test)]
mod tests {
use crate::ui::utils::layout_block;
use crate::ui::widgets::loading_block::LoadingBlock;
use pretty_assertions::assert_eq;
#[test]
fn test_loading_block_new() {
let loading_block = LoadingBlock::new(true, layout_block());
assert_eq!(loading_block.is_loading, true);
assert_eq!(loading_block.block, layout_block());
}
}