Skip to content
Snippets Groups Projects
Verified Commit 8446229d authored by Sebastian Bergandy's avatar Sebastian Bergandy :keyboard:
Browse files

OZG-7473 rename const

Based on CR comment.
parent b4665ba0
Branches
Tags
1 merge request!104Administration: Neu hinzugefügte Felder für Statistik speichern
......@@ -37,23 +37,23 @@ describe('AggregationMappingResourceService', () => {
});
describe('build config', () => {
const _getResourceByNavigationRoute: jest.SpyInstance = jest
const getResourceByNavigationRouteSpy: jest.SpyInstance = jest
.spyOn(self, '_getResourceByNavigationRoute')
.mockImplementation();
afterAll(() => {
_getResourceByNavigationRoute.mockRestore();
getResourceByNavigationRouteSpy.mockRestore();
});
it('should get resource by navigation route', () => {
self._buildResourceServiceConfig(useFromMock(repository), useFromMock(navigationService));
expect(_getResourceByNavigationRoute).toHaveBeenCalled();
expect(getResourceByNavigationRouteSpy).toHaveBeenCalled();
});
it('should have aggregation mapping static resource', () => {
const staticResource: StateResource<AggregationMappingResource> = createStateResource(createAggregationMappingResource());
_getResourceByNavigationRoute.mockReturnValue(of(staticResource));
getResourceByNavigationRouteSpy.mockReturnValue(of(staticResource));
const config: ResourceServiceConfig<AggregationMappingResource> = self._buildResourceServiceConfig(
useFromMock(repository),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment