pretty assert

This commit is contained in:
veeso
2021-05-06 21:57:04 +02:00
parent c0eb98c3f9
commit 892be42988
33 changed files with 101 additions and 1 deletions

View File

@@ -333,6 +333,8 @@ impl Component for BookmarkList {
mod tests {
use super::*;
use pretty_assertions::assert_eq;
use tuirealm::event::KeyEvent;
#[test]

View File

@@ -345,6 +345,8 @@ impl Component for FileList {
mod tests {
use super::*;
use pretty_assertions::assert_eq;
use tuirealm::event::KeyEvent;
#[test]

View File

@@ -297,6 +297,8 @@ impl Component for LogBox {
mod tests {
use super::*;
use pretty_assertions::assert_eq;
use tuirealm::event::{KeyCode, KeyEvent};
use tuirealm::props::{TableBuilder, TextSpan};
use tuirealm::tui::style::Color;

View File

@@ -210,6 +210,8 @@ impl Component for MsgBox {
mod tests {
use super::*;
use pretty_assertions::assert_eq;
use tuirealm::event::{KeyCode, KeyEvent};
use tuirealm::props::{TextSpan, TextSpanBuilder};
use tuirealm::tui::style::Color;

View File

@@ -163,6 +163,8 @@ impl Default for FileTransferParams {
mod tests {
use super::*;
use pretty_assertions::assert_eq;
use std::path::PathBuf;
#[test]

View File

@@ -175,6 +175,8 @@ mod tests {
use super::*;
use pretty_assertions::assert_eq;
#[test]
fn test_ui_store() {
// Create store