@@ -126,7 +126,7 @@ describe("MastodonRelay", () => {
126126 ok ( response instanceof Response ) ;
127127 } ) ;
128128
129- test ( "fetching relay actor returns Application " , async ( ) => {
129+ test ( "fetching relay actor returns Service " , async ( ) => {
130130 const kv = new MemoryKvStore ( ) ;
131131 const relay = new MastodonRelay ( {
132132 kv,
@@ -141,7 +141,7 @@ describe("MastodonRelay", () => {
141141
142142 strictEqual ( response . status , 200 ) ;
143143 const json = await response . json ( ) as any ;
144- strictEqual ( json . type , "Application " ) ;
144+ strictEqual ( json . type , "Service " ) ;
145145 strictEqual ( json . preferredUsername , "relay" ) ;
146146 strictEqual ( json . name , "ActivityPub Relay" ) ;
147147 } ) ;
@@ -397,21 +397,19 @@ describe("MastodonRelay", () => {
397397 strictEqual ( response . status , 200 ) ;
398398 const json = await response . json ( ) as any ;
399399
400- strictEqual ( json . type , "Application " ) ;
400+ strictEqual ( json . type , "Service " ) ;
401401 strictEqual ( json . preferredUsername , "relay" ) ;
402402 strictEqual ( json . name , "ActivityPub Relay" ) ;
403403 strictEqual (
404404 json . summary ,
405405 "Mastodon-compatible ActivityPub relay server" ,
406406 ) ;
407407 strictEqual ( json . id , "https://relay.example.com/users/relay" ) ;
408- strictEqual ( json . inbox , "https://relay.example.com/users/relay/ inbox" ) ;
408+ strictEqual ( json . inbox , "https://relay.example.com/inbox" ) ;
409409 strictEqual (
410410 json . followers ,
411411 "https://relay.example.com/users/relay/followers" ,
412412 ) ;
413- ok ( json . endpoints ) ;
414- strictEqual ( json . endpoints . sharedInbox , "https://relay.example.com/inbox" ) ;
415413 } ) ;
416414
417415 test ( "multiple followers can be stored" , async ( ) => {
0 commit comments