AppFlowy/rust-lib/flowy-user/tests/server/user_test.rs

15 lines
364 B
Rust
Raw Normal View History

2021-08-21 09:17:54 +00:00
use flowy_user::prelude::*;
#[tokio::test]
async fn user_register_test() {
let server = UserServerImpl {};
let params = SignUpParams {
email: "annie@appflowy.io".to_string(),
name: "annie".to_string(),
2021-08-22 14:16:03 +00:00
password: "1233333".to_string(),
2021-08-21 09:17:54 +00:00
};
let result = server.sign_up(params).await.unwrap();
println!("{:?}", result);
2021-08-21 09:17:54 +00:00
}