Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Aug 29, 2024
1 parent c36edac commit 9392229
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/service/file_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ mod tests {

let result = perform_replacement(title, settings, None);

assert_eq!(result, "test - test");
assert_eq!(result, "test-_ test");
}

#[test]
Expand Down Expand Up @@ -551,7 +551,7 @@ mod tests {
};

let result = perform_episode_variable_replacement(settings, podcast_episode, None);
assert_eq!(result.unwrap(), "'test123test'");
assert_eq!(result.unwrap(), "test123test");
}

#[test]
Expand Down Expand Up @@ -593,7 +593,7 @@ mod tests {
};

let result = perform_episode_variable_replacement(settings, podcast_episode, None);
assert_eq!(result.unwrap(), "'2022MyPodcasttest'");
assert_eq!(result.unwrap(), "2022MyPodcasttest");
}

#[test]
Expand Down Expand Up @@ -635,7 +635,7 @@ mod tests {
};

let result = perform_episode_variable_replacement(settings, podcast_episode, None);
assert_eq!(result.unwrap(), "'MyPodcast'");
assert_eq!(result.unwrap(), "MyPodcast");
}

#[test]
Expand Down Expand Up @@ -664,7 +664,7 @@ mod tests {
date: "2022-12".to_string(),
};
let result = perform_podcast_variable_replacement(settings, podcast_episode, None);
assert_eq!(result.unwrap(), "'2022-12-Test'");
assert_eq!(result.unwrap(), "2022-12-Test");
}

#[test]
Expand Down Expand Up @@ -693,6 +693,6 @@ mod tests {
date: "2022-12".to_string(),
};
let result = perform_podcast_variable_replacement(settings, podcast_episode, None);
assert_eq!(result.unwrap(), "'Test'");
assert_eq!(result.unwrap(), "Test");
}
}

0 comments on commit 9392229

Please sign in to comment.