test.rs 372 B

12345678910111213
  1. use flowy_test::FlowyCoreTest;
  2. use crate::util::{generate_test_email, get_af_cloud_config};
  3. #[tokio::test]
  4. async fn af_cloud_sign_up_test() {
  5. if get_af_cloud_config().is_some() {
  6. let test = FlowyCoreTest::new();
  7. let email = generate_test_email();
  8. let user = test.af_cloud_sign_in_with_email(&email).await.unwrap();
  9. assert_eq!(user.email, email);
  10. }
  11. }