mirror of https://github.com/abpframework/abp.git
4 changed files with 14 additions and 21 deletions
@ -1 +0,0 @@ |
|||
export * from './routes-service.spec.utils'; |
|||
@ -1,12 +0,0 @@ |
|||
import { RoutesService } from '../../services'; |
|||
import { mockPermissionService } from './permission-service.spec.utils'; |
|||
import { DummyInjector, mockActions } from './common.utils'; |
|||
|
|||
export const mockRoutesService = (injectorPayload = {} as { [key: string]: any }) => { |
|||
const injector = new DummyInjector({ |
|||
PermissionService: mockPermissionService(), |
|||
Actions: mockActions, |
|||
...injectorPayload, |
|||
}); |
|||
return new RoutesService(injector); |
|||
}; |
|||
Loading…
Reference in new issue