From e60fe879d6e184e68135b2e4907d2a31cf6a2fef Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sat, 15 Feb 2025 11:40:18 -0500 Subject: [PATCH] document "special character" as zero-width space in activitypub unit tests --- packages/backend/test/unit/activitypub.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/test/unit/activitypub.ts b/packages/backend/test/unit/activitypub.ts index b4cffbc706..435dbb5bea 100644 --- a/packages/backend/test/unit/activitypub.ts +++ b/packages/backend/test/unit/activitypub.ts @@ -517,7 +517,7 @@ describe('ActivityPub', () => { describe('renderNote', () => { describe('summary', () => { // I actually don't know why it does this, but the logic was already there so I've preserved it. - it('should be special character when CW is empty string', async () => { + it('should be zero-width space when CW is empty string', async () => { note.cw = ''; const result = await rendererService.renderNote(note, author, false); @@ -570,7 +570,7 @@ describe('ActivityPub', () => { describe('renderUpnote', () => { describe('summary', () => { // I actually don't know why it does this, but the logic was already there so I've preserved it. - it('should be special character when CW is empty string', async () => { + it('should be zero-width space when CW is empty string', async () => { note.cw = ''; const result = await rendererService.renderUpNote(note, author, false);