mirror of
https://github.com/block/buzz.git
synced 2026-10-29 05:21:31 +00:00
fix(desktop): correct display_name in content_matches_nip_ap_vector compaction
The sample_persona() refactor in the ratchet commit left out a display_name override — sample_persona() returns 'Test Persona' but the NIP-AP vector fixture asserts 'Test Agent'. Add p.display_name = 'Test Agent' alongside the existing p.id override. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
@@ -381,6 +381,7 @@ fn content_matches_nip_ap_vector() {
|
||||
let record = {
|
||||
let mut p = sample_persona();
|
||||
p.id = "test-agent".to_string();
|
||||
p.display_name = "Test Agent".to_string();
|
||||
p
|
||||
};
|
||||
let event = build_persona_event(&record)
|
||||
|
||||
Reference in New Issue
Block a user