use assert_str_eq

This commit is contained in:
Abraham Toriz 2022-08-01 22:04:22 +08:00
parent 6889945e1e
commit bc0f4236ac
No known key found for this signature in database
GPG Key ID: D5B4A746DB5DD42A
1 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ impl<'a> Command<'a> for DisplayCommand {
#[cfg(test)]
mod tests {
use chrono::TimeZone;
use pretty_assertions::assert_eq;
use pretty_assertions::{assert_eq, assert_str_eq};
use crate::database::SqliteDatabase;
use crate::config::Config;
@ -235,7 +235,7 @@ mod tests {
DisplayCommand::handle(args, &mut streams, &facts).unwrap();
assert_eq!(&String::from_utf8_lossy(&streams.out), "Timesheet: sheet1
assert_str_eq!(&String::from_utf8_lossy(&streams.out), "Timesheet: sheet1
Day Start End Duration Notes
Wed Jun 30, 2021 04:00:00 - 05:00:00 1:00:00
06:00:00 - 07:00:00 1:00:00