| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 | use flowy_test::prelude::TestBuilder;use flowy_user::errors::UserError;pub type UserTestBuilder = TestBuilder<UserError>;pub(crate) fn invalid_email_test_case() -> Vec<String> {    // https://gist.github.com/cjaoude/fd9910626629b53c4d25    vec![        "",        "annie@",        "annie@gmail@",        "#@%^%#$@#$@#.com",        "@example.com",        "Joe Smith <[email protected]>",        "email.example.com",        "email@[email protected]",        "[email protected]",        "[email protected]",        "あいうえお@example.com",        /* The following email is valid according to the validate_email function return         * "[email protected]",         * "[email protected]",         * "[email protected]",         * "email@example",         * "[email protected]",         * "[email protected]",         * "[email protected]", */    ]    .iter()    .map(|s| s.to_string())    .collect::<Vec<_>>()}pub(crate) fn invalid_password_test_case() -> Vec<String> {    vec!["", "123456", "1234".repeat(100).as_str()]        .iter()        .map(|s| s.to_string())        .collect::<Vec<_>>()}pub(crate) fn valid_email() -> String { "[email protected]".to_string() }pub(crate) fn valid_password() -> String { "HelloWorld!123".to_string() }pub(crate) fn valid_name() -> String { "AppFlowy".to_string() }
 |