Skip to content

Commit 1b18258

Browse files
committed
Make snapshots independent of local key config
1 parent 9757d7f commit 1b18258

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
@@ -458,9 +458,7 @@ mod tests {
458458
let input = Input::new();
459459

460460
let theme = Theme::init(&PathBuf::new());
461-
let key_config = KeyConfig::init()
462-
.map_err(|e| eprintln!("KeyConfig loading error: {e}"))
463-
.unwrap_or_default();
461+
let key_config = KeyConfig::default();
464462

465463
let mut app = App::new(
466464
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)