AppFlowy/rust-lib/flowy-sdk/tests/sdk/user_check.rs
2021-07-03 14:14:10 +08:00

21 lines
519 B
Rust

use super::helper::*;
use flowy_sys::prelude::*;
use flowy_user::prelude::*;
use tokio::time::{sleep, Duration};
#[test]
#[should_panic]
fn auth_check_no_payload() {
let resp = EventTester::new(AuthCheck).sync_send();
assert_eq!(resp.status, StatusCode::Ok);
}
#[tokio::test]
async fn auth_check_with_user_name_email_payload() {
let user_data = UserData::new("jack".to_owned(), "helloworld@gmail.com".to_owned());
EventTester::new(AuthCheck)
.bytes_payload(user_data)
.sync_send();
}