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::*;
use serde_json::json;
#[test]
fn server_events_turn_off_geoip_and_keep_their_properties() {
assert_eq!(
capture_payload(
"phc_test",
"macro|[email protected]",
"integration_connected",
json!({ "provider": "linear" }),
),
json!({
"api_key": "phc_test",
"event": "integration_connected",
"distinct_id": "macro|[email protected]",
"properties": { "provider": "linear", "$geoip_disable": true },
})
);
}
#[test]
fn events_without_properties_still_turn_off_geoip() {
assert_eq!(
capture_payload("phc_test", "macro|[email protected]", "team_create", ())["properties"],
json!({ "$geoip_disable": true })
);
}