From d99875330fdc5b58623ae8c5f76cdb44bed927a0 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Thu, 21 Mar 2024 16:05:34 +0000 Subject: [PATCH] [FM] Automated formating frontend --- .../services/chustomization.service.spec.ts | 37 ++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/frontend/src/app/shared/services/chustomization.service.spec.ts b/frontend/src/app/shared/services/chustomization.service.spec.ts index d209fe0ecd..2a5701e1a4 100644 --- a/frontend/src/app/shared/services/chustomization.service.spec.ts +++ b/frontend/src/app/shared/services/chustomization.service.spec.ts @@ -1,38 +1,41 @@ 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"; +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"} + 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) - }} - ] + { 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']) + 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']); }); });