From f5abc18ab00af579e177d68ecb5f973406af627d Mon Sep 17 00:00:00 2001 From: Quentin Date: Wed, 16 Oct 2024 22:04:39 +0200 Subject: [PATCH] Reformat angular files with prettier --- .../core/src/main/webapp/app/app.component.spec.ts.mustache | 5 +---- .../webapp/app/auth/oauth2-auth.service.spec.ts.mustache | 2 +- .../src/main/webapp/app/auth/oauth2-auth.service.ts.mustache | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/resources/generator/client/angular/core/src/main/webapp/app/app.component.spec.ts.mustache b/src/main/resources/generator/client/angular/core/src/main/webapp/app/app.component.spec.ts.mustache index 7d371508cc6..b8152351a94 100644 --- a/src/main/resources/generator/client/angular/core/src/main/webapp/app/app.component.spec.ts.mustache +++ b/src/main/resources/generator/client/angular/core/src/main/webapp/app/app.component.spec.ts.mustache @@ -9,10 +9,7 @@ describe('App Component', () => { beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ - providers: [ - provideRouter([]), - { provide: ComponentFixtureAutoDetect, useValue: true } - ], + providers: [provideRouter([]), { provide: ComponentFixtureAutoDetect, useValue: true }], }).compileComponents(); })); diff --git a/src/main/resources/generator/client/angular/security/oauth2/src/main/webapp/app/auth/oauth2-auth.service.spec.ts.mustache b/src/main/resources/generator/client/angular/security/oauth2/src/main/webapp/app/auth/oauth2-auth.service.spec.ts.mustache index 281b84e1f2e..50ec6090ce9 100644 --- a/src/main/resources/generator/client/angular/security/oauth2/src/main/webapp/app/auth/oauth2-auth.service.spec.ts.mustache +++ b/src/main/resources/generator/client/angular/security/oauth2/src/main/webapp/app/auth/oauth2-auth.service.spec.ts.mustache @@ -1,8 +1,8 @@ import { TestBed } from '@angular/core/testing'; import Keycloak, { KeycloakConfig, KeycloakInitOptions } from 'keycloak-js'; import { lastValueFrom } from 'rxjs'; -import { Oauth2AuthService } from './oauth2-auth.service'; import { environment } from '../../environments/environment'; +import { Oauth2AuthService } from './oauth2-auth.service'; import SpyInstance = jest.SpyInstance; jest.mock('keycloak-js', () => ({ diff --git a/src/main/resources/generator/client/angular/security/oauth2/src/main/webapp/app/auth/oauth2-auth.service.ts.mustache b/src/main/resources/generator/client/angular/security/oauth2/src/main/webapp/app/auth/oauth2-auth.service.ts.mustache index 1940cfcd92f..0d9c1c66b24 100644 --- a/src/main/resources/generator/client/angular/security/oauth2/src/main/webapp/app/auth/oauth2-auth.service.ts.mustache +++ b/src/main/resources/generator/client/angular/security/oauth2/src/main/webapp/app/auth/oauth2-auth.service.ts.mustache @@ -24,7 +24,7 @@ export class Oauth2AuthService { } initAuthentication(): Observable { - return from(this.keycloak.init({ onLoad: 'login-required', checkLoginIframe: false })).pipe( + return from(this.keycloak.init({ onLoad: 'login-required', checkLoginIframe: false })).pipe( tap(authenticated => { if (!authenticated) { window.location.reload();