Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wangl-cc committed Nov 25, 2023
1 parent 8bcfc27 commit e58d357
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions maa-cli/src/config/cli/maa_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,13 +288,6 @@ mod tests {

#[test]
fn api_url() {
set_var("MAA_API_URL", "https://foo.bar/core/");
assert_eq!(
Config::default().api_url(),
"https://foo.bar/core/stable.json"
);
remove_var("MAA_API_URL");

assert_eq!(
default_config().set_channel(Channel::Stable).api_url(),
"https://ota.maa.plus/MaaAssistantArknights/api/version/stable.json"
Expand All @@ -313,6 +306,13 @@ mod tests {
.api_url(),
"https://foo.bar/api/stable.json"
);

set_var("MAA_API_URL", "https://foo.bar/core/");
assert_eq!(
Config::default().api_url(),
"https://foo.bar/core/stable.json"
);
remove_var("MAA_API_URL");
}

#[test]
Expand Down

0 comments on commit e58d357

Please sign in to comment.