Skip to content

Commit edeb7fd

Browse files
committed
Make snapshots independent of local key config
1 parent d53bb83 commit edeb7fd

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,7 @@ mod tests {
447447
let input = Input::new();
448448

449449
let theme = Theme::init(&PathBuf::new());
450-
let key_config = KeyConfig::init()
451-
.map_err(|e| eprintln!("KeyConfig loading error: {e}"))
452-
.unwrap_or_default();
450+
let key_config = KeyConfig::default();
453451

454452
let mut app = App::new(
455453
RefCell::new(path),

src/snapshots/gitui__tests__app_loading_finished.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ snapshot_kind: text
4242
"│ ││ │"
4343
"│ ││ │"
4444
"└──────────────────────────────────────────────────────────┘└──────────────────────────────────────────────────────────┘"
45-
"Branches [b] Push [p] Fetch [⇧F] Pull [f] Undo Commit [⇧U] Submodules [⇧S] Nav [kjlh] Diff [l] To stage [w] more [.]"
45+
"Branches [b] Push [p] Fetch [⇧F] Pull [f] Undo Commit [⇧U] Submodules [⇧S] Nav [↑↓→←] Diff [] To stage [w] more [.]"

src/snapshots/gitui__tests__app_log_tab_showing_one_commit.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ snapshot_kind: text
4242
"│ ║"
4343
"│ ║"
4444
"└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘"
45-
"Scroll [kj] Mark [˽] Details [⏎] Branches [b] Compare [⇧C] Copy Hash [y] Tag [t] Checkout [⇧S] Tags [⇧T] more [.]"
45+
"Scroll [↑↓] Mark [˽] Details [⏎] Branches [b] Compare [⇧C] Copy Hash [y] Tag [t] Checkout [⇧S] Tags [⇧T] more [.]"

0 commit comments

Comments
 (0)