summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-02-15 11:40:18 -0500
committerHazelnoot <acomputerdog@gmail.com>2025-02-16 19:20:42 -0500
commite60fe879d6e184e68135b2e4907d2a31cf6a2fef (patch)
tree848fd9b14b8c524827486e17badd0d3674f32bc7
parentadjust types to avoid merge conflicts in NoteCreateService.ts and NoteEditSer... (diff)
downloadsharkey-e60fe879d6e184e68135b2e4907d2a31cf6a2fef.tar.gz
sharkey-e60fe879d6e184e68135b2e4907d2a31cf6a2fef.tar.bz2
sharkey-e60fe879d6e184e68135b2e4907d2a31cf6a2fef.zip
document "special character" as zero-width space in activitypub unit tests
-rw-r--r--packages/backend/test/unit/activitypub.ts4
1 files 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);