use assert_str_eq
This commit is contained in:
parent
6889945e1e
commit
bc0f4236ac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue