mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 08:47:18 +02:00
chore: Change test error message ♻️
This commit is contained in:
parent
8b84ab937f
commit
27b0bb09b7
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue