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 macro_db_migrator::MACRO_DB_MIGRATIONS;
use sqlx::{Pool, Postgres};
#[sqlx::test(
migrator = "MACRO_DB_MIGRATIONS",
fixtures(path = "../../../fixtures", scripts("user_notifications"))
)]
async fn test_delete_user_notification(pool: Pool<Postgres>) -> anyhow::Result<()> {
delete_user_notification(
&pool,
"0193b1ea-a542-7589-893b-2b4a509c1e74",
"macro|[email protected]",
)
.await?;
Ok(())
}
#[sqlx::test(
migrator = "MACRO_DB_MIGRATIONS",
fixtures(path = "../../../fixtures", scripts("user_notifications"))
)]
async fn test_bulk_delete_user_notification(pool: Pool<Postgres>) -> anyhow::Result<()> {
bulk_delete_user_notification(
&pool,
"macro|[email protected]",
&vec![
macro_uuid::string_to_uuid("0193b1ea-a542-7589-893b-2b4a509c1e76")?,
macro_uuid::string_to_uuid("0193b1ea-a542-7589-893b-2b4a509c1e75")?,
],
)
.await?;
Ok(())
}