From 5ac681b8d4edfee1de2bf2dea33efded2bd9249d Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 15 Oct 2024 16:35:01 +0000 Subject: [PATCH] refactor(@schematics/angular): minor formatting fixes Some minor formatting fixes. --- .../files/module-files/src/app/app.component.spec.ts.template | 3 ++- .../standalone-files/src/app/app.component.spec.ts.template | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/schematics/angular/application/files/module-files/src/app/app.component.spec.ts.template b/packages/schematics/angular/application/files/module-files/src/app/app.component.spec.ts.template index 22fc41727c65..acd295776916 100644 --- a/packages/schematics/angular/application/files/module-files/src/app/app.component.spec.ts.template +++ b/packages/schematics/angular/application/files/module-files/src/app/app.component.spec.ts.template @@ -1,4 +1,5 @@ -<% if(experimentalZoneless) { %> import { provideExperimentalZonelessChangeDetection } from '@angular/core'; <% } %>import { TestBed } from '@angular/core/testing';<% if (routing) { %> +<% if(experimentalZoneless) { %>import { provideExperimentalZonelessChangeDetection } from '@angular/core'; +<% } %>import { TestBed } from '@angular/core/testing';<% if (routing) { %> import { RouterModule } from '@angular/router';<% } %> import { AppComponent } from './app.component'; diff --git a/packages/schematics/angular/application/files/standalone-files/src/app/app.component.spec.ts.template b/packages/schematics/angular/application/files/standalone-files/src/app/app.component.spec.ts.template index b428b8e81cba..94a09da84375 100644 --- a/packages/schematics/angular/application/files/standalone-files/src/app/app.component.spec.ts.template +++ b/packages/schematics/angular/application/files/standalone-files/src/app/app.component.spec.ts.template @@ -1,5 +1,5 @@ -<% if(experimentalZoneless) { %> import { provideExperimentalZonelessChangeDetection } from '@angular/core'; <% } %> -import { TestBed } from '@angular/core/testing'; +<% if(experimentalZoneless) { %>import { provideExperimentalZonelessChangeDetection } from '@angular/core'; +<% } %>import { TestBed } from '@angular/core/testing'; import { AppComponent } from './app.component'; describe('AppComponent', () => {