Skip to content

Commit ef15182

Browse files
refactor
1 parent 08cf3a8 commit ef15182

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

snip.pkg

23.6 KB
Binary file not shown.

src/main.rs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use snip::actions::search_snippets::search_snippets;
88
use snip::actions::show_snippet::show_snippet;
99
use snip::actions::update_key_in_file::update_key_in_file;
1010
use snip::actions::write_snippet_to_file::write_snippet_to_file;
11-
use snip::constants::{DEFAULT_CONFIG_PATH, DEFAULT_SNIPPET_PATH};
11+
use snip::constants::DEFAULT_SNIPPET_PATH;
1212
use snip::helpers::expand_home_dir::expand_home_dir;
1313
use snip::helpers::get_app_config::get_app_config;
1414
use snip::models::cli_model::Cli;
@@ -106,21 +106,3 @@ async fn main() -> Result<()> {
106106

107107
Ok(())
108108
}
109-
110-
#[cfg(test)]
111-
mod tests {
112-
use super::*;
113-
114-
#[test]
115-
fn test_env_var_is_not_set_then_use_default_config_path() {
116-
// Arrange
117-
let expected = expand_home_dir(DEFAULT_CONFIG_PATH)
118-
.expect("Failed to find home directory")
119-
.to_string_lossy()
120-
.into_owned();
121-
// Act
122-
let actual = main();
123-
// Assert
124-
assert_eq!(expected, actual);
125-
}
126-
}

0 commit comments

Comments
 (0)