mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
16 lines
373 B
Rust
16 lines
373 B
Rust
use crate::helper::*;
|
|
use flowy_sys::prelude::*;
|
|
|
|
pub async fn hello() -> String { "say hello".to_string() }
|
|
|
|
#[tokio::test]
|
|
async fn test_init() {
|
|
setup_env();
|
|
let event = "1";
|
|
init_dispatch(|| vec![Module::new().event(event, hello)]);
|
|
|
|
let request = DispatchRequest::new(event, Payload::None);
|
|
let resp = async_send(request).await;
|
|
dbg!(&resp);
|
|
}
|