From cd5d3e2bf99cb241f790e2c50e66a2ee097364ce Mon Sep 17 00:00:00 2001 From: clean-coder Date: Wed, 8 May 2024 11:52:33 +0200 Subject: [PATCH] remove duplicate test for CustomizationService --- .../services/chustomization.service.spec.ts | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 frontend/src/app/shared/services/chustomization.service.spec.ts diff --git a/frontend/src/app/shared/services/chustomization.service.spec.ts b/frontend/src/app/shared/services/chustomization.service.spec.ts deleted file mode 100644 index 2a5701e1a4..0000000000 --- a/frontend/src/app/shared/services/chustomization.service.spec.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { TestBed } from '@angular/core/testing'; -import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing'; -import { CustomizationService } from './customization.service'; -import { DOCUMENT } from '@angular/common'; -import { ConfigService } from '../../config.service'; -import { Observable, of } from 'rxjs'; - -describe('CustomizationService', () => { - let service: CustomizationService; - - const body = { - title: 'title', - favicon: 'favicon', - logo: 'logo', - customStyles: { cssVar1: 'foo' }, - }; - - beforeEach(() => { - TestBed.configureTestingModule({ - imports: [HttpClientTestingModule], - providers: [ - { provide: DOCUMENT, useValue: undefined }, - { - provide: ConfigService, - useValue: { - config$: of(body), - }, - }, - ], - }); - service = TestBed.inject(CustomizationService); - }); - - it('should be created', () => { - const currentConfig = service.getCurrentConfig(); - expect(currentConfig?.title).toBe(body.title); - expect(currentConfig?.logo).toBe(body.logo); - expect(currentConfig?.favicon).toBe(body.favicon); - expect(currentConfig?.customStyles['cssVar1']).toBe(body.customStyles['cssVar1']); - }); -});