|
@@ -16,6 +16,21 @@ fn sign_in_without_password() {
|
|
dbg!(&result);
|
|
dbg!(&result);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#[test]
|
|
|
|
+#[should_panic]
|
|
|
|
+fn sign_in_with_invalid_password() {
|
|
|
|
+ let params = UserSignInParams {
|
|
|
|
+ email: "[email protected]".to_string(),
|
|
|
|
+ password: "123".to_string(),
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ let result = EventTester::new(SignIn)
|
|
|
|
+ .payload(params)
|
|
|
|
+ .assert_status_code(StatusCode::Err)
|
|
|
|
+ .sync_send::<UserSignInResult>();
|
|
|
|
+ dbg!(&result);
|
|
|
|
+}
|
|
|
|
+
|
|
#[test]
|
|
#[test]
|
|
#[should_panic]
|
|
#[should_panic]
|
|
fn sign_in_without_email() {
|
|
fn sign_in_without_email() {
|