Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
use super::is_macro_notification_sender;
#[test]
fn matches_every_environment_prefix() {
assert!(is_macro_notification_sender(
"[email protected]"
));
assert!(is_macro_notification_sender(
"[email protected]"
));
assert!(is_macro_notification_sender(
"[email protected]"
));
}
#[test]
fn is_case_and_whitespace_insensitive() {
assert!(is_macro_notification_sender(
"[email protected]"
));
assert!(is_macro_notification_sender(
" [email protected]\n"
));
}
#[test]
fn rejects_other_macro_and_lookalike_domains() {
assert!(!is_macro_notification_sender("[email protected]"));
assert!(!is_macro_notification_sender("[email protected]"));
assert!(!is_macro_notification_sender(
"[email protected]"
));
assert!(!is_macro_notification_sender(
"[email protected]"
));
assert!(!is_macro_notification_sender(
"[email protected]"
));
assert!(!is_macro_notification_sender("notification.macro.com"));
assert!(!is_macro_notification_sender(""));
}