| 123456789101112131415161718192021222324 |
- pub mod builder;
- mod helper;
- mod tester;
- use crate::helper::root_dir;
- use flowy_sdk::{ArcFlowyServer, FlowySDK};
- use std::sync::Once;
- pub mod prelude {
- pub use crate::{
- builder::{TestBuilder, *},
- helper::*,
- };
- pub use flowy_dispatch::prelude::*;
- }
- static INIT: Once = Once::new();
- pub fn init_test_sdk(server: ArcFlowyServer) {
- let root_dir = root_dir();
- INIT.call_once(|| {
- FlowySDK::construct_with(&root_dir, server);
- });
- }
|