add redaction mock utility fn
This commit is contained in:
parent
b153613200
commit
8991632105
1 changed files with 4 additions and 0 deletions
|
@ -33,3 +33,7 @@ export function withTextBody(body, event) {
|
||||||
export function withTxnId(txnId, event) {
|
export function withTxnId(txnId, event) {
|
||||||
return Object.assign({}, event, {unsigned: {transaction_id: txnId}});
|
return Object.assign({}, event, {unsigned: {transaction_id: txnId}});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function withRedacts(redacts, reason, event) {
|
||||||
|
return Object.assign({redacts, content: {reason}}, event);
|
||||||
|
}
|
||||||
|
|
Reference in a new issue