Skip to content

Commit

Permalink
Merge branch 'development' of https://github.com/Xanthus58/webhook_se…
Browse files Browse the repository at this point in the history
…nder into development
  • Loading branch information
Zephira58 committed Mar 26, 2023
2 parents 3c16a83 + cabce38 commit 940e289
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/tests.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#[cfg(test)]
mod tests {
use std::collections::HashMap;
use self_update::cargo_crate_version;

use std::collections::HashMap;

#[test]
fn test_get_insult() {
Expand Down Expand Up @@ -37,7 +36,7 @@ mod tests {
request_body.insert("content", "unit test");
request_body.insert("username", "xanthus");
request_body.insert("avatar_url", "https://cdn.discordapp.com/avatars/292971545956188160/2a77b119a3f8ccedfbd513825eec97a5.png?size=1024");

reqwest::Client::new()
.post("https://discord.com/api/webhooks/1071132108392775720/uYFy-Iyxfi8pO98_PNF3f8fgATHNKzYkSDJ1c4S9_5lvB-axPyTQlF5iHl29cW-6JyPO")
.json(&request_body)
Expand All @@ -59,4 +58,4 @@ mod tests {
println!("Update status: `{}`!", status.version());
Ok(())
}
}
}

0 comments on commit 940e289

Please sign in to comment.