mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 08:47:18 +02:00
chore: Update tests ♻️
This commit is contained in:
parent
279b63874b
commit
205c110a09
1 changed files with 4 additions and 2 deletions
|
@ -3552,8 +3552,9 @@ mod tests {
|
||||||
|
|
||||||
assert_eq!(app.contexts.table_state.current_selection(), Some(0));
|
assert_eq!(app.contexts.table_state.current_selection(), Some(0));
|
||||||
app.context_next();
|
app.context_next();
|
||||||
|
app.context_next();
|
||||||
app.context_select().unwrap();
|
app.context_select().unwrap();
|
||||||
assert_eq!(app.contexts.table_state.current_selection(), Some(1));
|
assert_eq!(app.contexts.table_state.current_selection(), Some(2));
|
||||||
|
|
||||||
assert!(app.get_context().is_ok());
|
assert!(app.get_context().is_ok());
|
||||||
assert!(app.update(true).is_ok());
|
assert!(app.update(true).is_ok());
|
||||||
|
@ -3561,7 +3562,8 @@ mod tests {
|
||||||
assert_eq!(app.tasks.len(), 1);
|
assert_eq!(app.tasks.len(), 1);
|
||||||
assert_eq!(app.current_context_filter, "+finance -private");
|
assert_eq!(app.current_context_filter, "+finance -private");
|
||||||
|
|
||||||
assert_eq!(app.contexts.table_state.current_selection(), Some(1));
|
assert_eq!(app.contexts.table_state.current_selection(), Some(2));
|
||||||
|
app.context_previous();
|
||||||
app.context_previous();
|
app.context_previous();
|
||||||
app.context_select().unwrap();
|
app.context_select().unwrap();
|
||||||
assert_eq!(app.contexts.table_state.current_selection(), Some(0));
|
assert_eq!(app.contexts.table_state.current_selection(), Some(0));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue