@@ -8,16 +8,13 @@ import {
88 type RequestContext ,
99} from '@fedify/fedify' ;
1010import {
11- actorDispatcher ,
1211 likedDispatcher ,
1312 nodeInfoDispatcher ,
1413 outboxDispatcher ,
1514} from './dispatchers' ;
1615
17- import type { AccountService } from './account/account.service' ;
1816import { ACTOR_DEFAULT_HANDLE } from './constants' ;
1917import * as lookupHelpers from './lookup-helpers' ;
20- import type { SiteService } from './site/site.service' ;
2118
2219vi . mock ( './app' , ( ) => ( {
2320 fedify : {
@@ -26,23 +23,6 @@ vi.mock('./app', () => ({
2623} ) ) ;
2724
2825describe ( 'dispatchers' , ( ) => {
29- describe ( 'actorDispatcher' , ( ) => {
30- it ( `returns null if the handle is not "${ ACTOR_DEFAULT_HANDLE } "` , async ( ) => {
31- // TODO: Clean up the any type
32- // biome-ignore lint/suspicious/noExplicitAny: Legacy code needs proper typing
33- const ctx = { } as RequestContext < any > ;
34- const handle = 'anything' ;
35-
36- const actual = await actorDispatcher (
37- { } as unknown as SiteService ,
38- { } as unknown as AccountService ,
39- ) ( ctx , handle ) ;
40- const expected = null ;
41-
42- expect ( actual ) . toEqual ( expected ) ;
43- } ) ;
44- } ) ;
45-
4626 describe ( 'likedDispatcher' , ( ) => {
4727 // TODO: Clean up the any type
4828 // biome-ignore lint/suspicious/noExplicitAny: Legacy code needs proper typing
0 commit comments