Skip to content

Commit

Permalink
test(config): Remove get_config_path_content test
Browse files Browse the repository at this point in the history
  • Loading branch information
alt-art committed Oct 29, 2023
1 parent 695a1a2 commit 2e209f2
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/config/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,6 @@ fn get_config_path_test() -> Result<()> {
Ok(())
}

#[test]
#[serial]
fn get_config_path_content_test() -> Result<()> {
let temp_dir = assert_fs::TempDir::new()?;
let config_file = temp_dir.child("config.json");
config_file.touch()?;
let config_path = config_file.path();
let content = get_config_path_content(config_path)?;
assert_eq!(content, "");

let expected = include_str!("../../commit.json");
config_file.write_str(expected)?;
let content = get_config_path_content(config_path)?;
assert_eq!(content, expected);
Ok(())
}

#[test]
#[serial]
fn get_pattern_test() -> Result<()> {
Expand Down

0 comments on commit 2e209f2

Please sign in to comment.