Skip to content

Commit

Permalink
Make snapshots independent of local key config
Browse files Browse the repository at this point in the history
  • Loading branch information
cruessler committed Nov 1, 2024
1 parent d53bb83 commit edeb7fd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,7 @@ mod tests {
let input = Input::new();

let theme = Theme::init(&PathBuf::new());
let key_config = KeyConfig::init()
.map_err(|e| eprintln!("KeyConfig loading error: {e}"))
.unwrap_or_default();
let key_config = KeyConfig::default();

let mut app = App::new(
RefCell::new(path),
Expand Down
2 changes: 1 addition & 1 deletion src/snapshots/gitui__tests__app_loading_finished.snap
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ snapshot_kind: text
"│ ││ │"
"│ ││ │"
"└──────────────────────────────────────────────────────────┘└──────────────────────────────────────────────────────────┘"
"Branches [b] Push [p] Fetch [⇧F] Pull [f] Undo Commit [⇧U] Submodules [⇧S] Nav [kjlh] Diff [l] To stage [w] more [.]"
"Branches [b] Push [p] Fetch [⇧F] Pull [f] Undo Commit [⇧U] Submodules [⇧S] Nav [↑↓→←] Diff [] To stage [w] more [.]"
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ snapshot_kind: text
"│ ║"
"│ ║"
"└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘"
"Scroll [kj] Mark [˽] Details [⏎] Branches [b] Compare [⇧C] Copy Hash [y] Tag [t] Checkout [⇧S] Tags [⇧T] more [.]"
"Scroll [↑↓] Mark [˽] Details [⏎] Branches [b] Compare [⇧C] Copy Hash [y] Tag [t] Checkout [⇧S] Tags [⇧T] more [.]"

0 comments on commit edeb7fd

Please sign in to comment.