mirror of
				https://github.com/AppFlowy-IO/AppFlowy.git
				synced 2025-10-31 01:54:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			524 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			524 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_code, 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();
 | |
| }
 | 
