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