1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-15 00:24:09 +01:00
fab-manager/test/frontend/__lib__/ui-router.ts
2022-12-21 14:14:28 +01:00

30 lines
584 B
TypeScript

import { UIRouter } from '@uirouter/angularjs';
export const uiRouter = {
$id: 0,
_disposed: false,
_disposables: [],
_plugins: [],
locationService: {},
locationConfig: {},
trace: {},
globals: {
current: { name: '' }
},
viewService: {},
transitionService: {
onBefore: () => jest.fn()
},
urlMatcherFactory: {},
urlRouter: {},
urlRouterProvider: {},
urlService: {},
stateRegistry: {},
stateService: {},
stateProvider: {},
disposable: jest.fn(),
dispose: jest.fn(),
plugin: jest.fn(),
getPlugin: jest.fn()
} as unknown as UIRouter;