AppFlowy/rust-lib/flowy-workspace/tests/event/helper.rs
2021-07-16 23:18:12 +08:00

12 lines
333 B
Rust

use flowy_test::prelude::TestBuilder;
use flowy_workspace::errors::WorkspaceError;
pub type WorkspaceTestBuilder = TestBuilder<WorkspaceError>;
pub(crate) fn invalid_workspace_name_test_case() -> Vec<String> {
vec!["", "1234".repeat(100).as_str()]
.iter()
.map(|s| s.to_string())
.collect::<Vec<_>>()
}