add redaction mock utility fn

This commit is contained in:
Bruno Windels 2021-06-23 11:42:16 +02:00
parent b153613200
commit 8991632105

View File

@ -33,3 +33,7 @@ export function withTextBody(body, event) {
export function withTxnId(txnId, event) {
return Object.assign({}, event, {unsigned: {transaction_id: txnId}});
}
export function withRedacts(redacts, reason, event) {
return Object.assign({redacts, content: {reason}}, event);
}