mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	document "special character" as zero-width space in activitypub unit tests
This commit is contained in:
		
							parent
							
								
									86b26fb58e
								
							
						
					
					
						commit
						e60fe879d6
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -517,7 +517,7 @@ describe('ActivityPub', () => {
 | 
				
			||||||
		describe('renderNote', () => {
 | 
							describe('renderNote', () => {
 | 
				
			||||||
			describe('summary', () => {
 | 
								describe('summary', () => {
 | 
				
			||||||
				// I actually don't know why it does this, but the logic was already there so I've preserved it.
 | 
									// 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 = '';
 | 
										note.cw = '';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
					const result = await rendererService.renderNote(note, author, false);
 | 
										const result = await rendererService.renderNote(note, author, false);
 | 
				
			||||||
| 
						 | 
					@ -570,7 +570,7 @@ describe('ActivityPub', () => {
 | 
				
			||||||
		describe('renderUpnote', () => {
 | 
							describe('renderUpnote', () => {
 | 
				
			||||||
			describe('summary', () => {
 | 
								describe('summary', () => {
 | 
				
			||||||
				// I actually don't know why it does this, but the logic was already there so I've preserved it.
 | 
									// 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 = '';
 | 
										note.cw = '';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
					const result = await rendererService.renderUpNote(note, author, false);
 | 
										const result = await rendererService.renderUpNote(note, author, false);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue