Skip to content

Commit

Permalink
fix(test): fix register test (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 authored Nov 24, 2024
1 parent 90a64e7 commit ee27398
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async fn test_register() -> Result<()> {

println!("Testing register...");
let response = client
.post("/account/register")
.post("/account/create")
.json(&RegisterData {
username: "fu050409".to_string(),
password: "password".to_string(),
Expand Down Expand Up @@ -165,7 +165,7 @@ async fn test_register() -> Result<()> {
let data: UploadResponse = data.unwrap();

assert!(success);
assert_eq!(data.uri, format!("/content/{}/avatar.png", &id));
assert!(data.uri.starts_with("/account/content/"));

let response = client
.post(format!("/account/delete/{}", id))
Expand Down

0 comments on commit ee27398

Please sign in to comment.