chore: Change test error message ♻️

This commit is contained in:
Dheepak Krishnamurthy 2021-11-09 11:15:52 -07:00
parent 8b84ab937f
commit 27b0bb09b7

View file

@ -1589,7 +1589,7 @@ impl TaskwarriorTui {
task.arg("rc.confirmation=off"); task.arg("rc.confirmation=off");
if let Some(args) = shlex::split(&format!( if let Some(args) = shlex::split(&format!(
"rc.report.{}.filter='{}'", r#"rc.report.{}.filter='{}'"#,
self.report, self.report,
self.filter.as_str().trim() self.filter.as_str().trim()
)) { )) {
@ -3476,7 +3476,8 @@ mod tests {
return; return;
} }
let app = app.unwrap(); let app = app.unwrap();
assert!(app.task_by_index(0).is_none());
assert!(app.task_by_index(0).is_none(), "Expected task data to be empty but found {} tasks. Delete contents of {:?} and {:?} and run the tests again.", app.tasks.len(), Path::new(env!("TASKDATA")), Path::new(env!("TASKDATA")).parent().unwrap().join(".config"));
let app = TaskwarriorTui::new("next").unwrap(); let app = TaskwarriorTui::new("next").unwrap();
assert!(app assert!(app