feat: fixing role and auth test

This commit is contained in:
Maulana Sodiqin
2025-03-25 19:30:02 +07:00
parent 34eaa418d5
commit 5777268441
4 changed files with 154 additions and 26 deletions
+2 -2
View File
@@ -143,8 +143,8 @@ async fn test_register_should_succeed() {
"fullname": "Valid User",
"student_type": "regular",
"phone_number": "0812345678",
"reffered_by": "Facebook",
"refferal_code": "KFNB"
"reffered_by": "Facebook",
"refferal_code": "KFNB"
});
let res = server.post("/v1/auth/register").json(&payload).await;
assert_eq!(res.status_code(), StatusCode::CREATED);