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..dbb1f887059 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 @@ -10,8 +10,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();