test(relay): borrow the delete authority filter fixture

Signed-off-by: Carl <acda9e433d19dcd0e6b6840f7f4b98f3a56f1fab98049d444c087019e6d36560@buzz.block.builderlab.xyz>
This commit is contained in:
Carl
2026-09-28 22:04:40 -07:00
parent 2208791c78
commit 74f85eba2b

View File

@@ -90,7 +90,7 @@ mod tests {
let id = Uuid::new_v4();
let filter =
json!({"kinds":[9008], "#h":[id], "#p":[viewer], "channel_delete_authority":1});
assert_eq!(channel(&[filter.clone()], &viewer), Some(id));
assert_eq!(channel(std::slice::from_ref(&filter), &viewer), Some(id));
assert_eq!(channel(&[], &viewer), None);
assert_eq!(channel(&[filter.clone(), filter.clone()], &viewer), None);
for (key, value) in [