test(tui): cover application interaction flows

This commit is contained in:
objz committed 2026-07-27 00:17:09 +02:00
1 parent aac3f47f6c
commit 798c323a82
9 files changed
+332 -28

No files matched your search

+8
View File
@@ -36,6 +36,14 @@ pub struct AccountStore {
}
impl AccountStore {
#[cfg(test)]
pub(crate) fn empty_for_test(path: PathBuf) -> Self {
Self {
accounts: Vec::new(),
path,
}
}
pub fn load() -> Self {
let path = account_store_path();
let accounts = match std::fs::read_to_string(&path) {