[SI-1198 - SI-2392] unit tests modified
Signed-off-by: Peter Buschmann <peter.buschmann@pta.de>
diff --git a/projects/grid-failure-information-map-app/src/app/app-config.service.spec.ts b/projects/grid-failure-information-map-app/src/app/app-config.service.spec.ts
index de478d0..defb76b 100644
--- a/projects/grid-failure-information-map-app/src/app/app-config.service.spec.ts
+++ b/projects/grid-failure-information-map-app/src/app/app-config.service.spec.ts
@@ -15,26 +15,13 @@
describe('AppConfigService', () => {
let service: AppConfigService;
let mockHttpClient;
- let baseHref: string;
beforeEach(() => {
mockHttpClient = { get: () => {} };
- service = new AppConfigService(mockHttpClient, baseHref);
+ service = new AppConfigService(mockHttpClient);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
-
- it('should define baseHref if undefined', () => {
- service['baseHref'] = undefined;
- service.getConfig();
- expect(service['baseHref']).toBe('');
- });
-
- it('should not redefine baseHref if it is already defined', () => {
- service['baseHref'] = 'x';
- service.getConfig();
- expect(service['baseHref']).not.toBe('');
- });
});