File tree Expand file tree Collapse file tree 2 files changed +1
-19
lines changed
Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ use snip::actions::search_snippets::search_snippets;
88use snip:: actions:: show_snippet:: show_snippet;
99use snip:: actions:: update_key_in_file:: update_key_in_file;
1010use 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 ;
1212use snip:: helpers:: expand_home_dir:: expand_home_dir;
1313use snip:: helpers:: get_app_config:: get_app_config;
1414use 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- }
You can’t perform that action at this time.
0 commit comments