@@ -85,7 +85,7 @@ test('parse content with hashtags and emoji shortcodes', () => {
8585 [ 'emoji' , 'alpaca' , 'https://example.com/alpaca.png' ] ,
8686 ] ,
8787 content :
88- 'hey nostr:npub1hpslpc8c5sp3e2nhm2fr7swsfqpys5vyjar5dwpn7e7decps6r8qkcln63 check out :alpaca::alpaca: #alpaca at wss://alpaca.com! :star:' ,
88+ 'hey nostr:npub1hpslpc8c5sp3e2nhm2fr7swsfqpys5vyjar5dwpn7e7decps6r8qkcln63 check out :alpaca::alpaca: #alpaca at wss://alpaca.com! :star:\n\n#WORDS #486 5/6 ' ,
8989 created_at : 1234567890 ,
9090 pubkey : 'dummy' ,
9191 id : 'dummy' ,
@@ -105,6 +105,11 @@ test('parse content with hashtags and emoji shortcodes', () => {
105105 { type : 'relay' , url : 'wss://alpaca.com/' } ,
106106 { type : 'text' , text : '! ' } ,
107107 { type : 'emoji' , shortcode : 'star' , url : 'https://example.com/star.png' } ,
108+ { type : 'text' , text : '\n\n' } ,
109+ { type : 'hashtag' , value : 'WORDS' } ,
110+ { type : 'text' , text : ' ' } ,
111+ { type : 'hashtag' , value : '486' } ,
112+ { type : 'text' , text : ' 5/6' } ,
108113 ] )
109114} )
110115
0 commit comments