test(tui): cover application interaction flows
This commit is contained in:
1 parent
aac3f47f6c
commit
798c323a82
9 files changed
+332
-28
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user