1
0

document "special character" as zero-width space in activitypub unit tests

This commit is contained in:
Hazelnoot
2025-02-15 11:40:18 -05:00
parent 86b26fb58e
commit e60fe879d6
+2 -2
View File
@@ -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);