AppFlowy/rust-lib/flowy-workspace/tests/event/helper.rs

12 lines
333 B
Rust
Raw Normal View History

2021-07-16 15:18:12 +00:00
use flowy_test::prelude::TestBuilder;
use flowy_workspace::errors::WorkspaceError;
2021-07-14 15:00:58 +00:00
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<_>>()
}