refactor(@schematics/angular): spacing fixes after experimental zoneless introduction

This commit is contained in:
cexbrayat 2024-10-17 11:31:04 +02:00 committed by Jan Olaf Martin
parent 1ac8b41985
commit 8ce57fea5f
3 changed files with 5 additions and 7 deletions

View File

@ -11,8 +11,8 @@ describe('AppComponent', () => {
],<% } %>
declarations: [
AppComponent
],
<% if(experimentalZoneless) { %>providers: [provideExperimentalZonelessChangeDetection()]<% } %>
],<% if(experimentalZoneless) { %>
providers: [provideExperimentalZonelessChangeDetection()]<% } %>
}).compileComponents();
});

View File

@ -5,8 +5,8 @@ import { AppComponent } from './app.component';
describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [AppComponent],
<% if(experimentalZoneless) { %>providers: [provideExperimentalZonelessChangeDetection()]<% } %>
imports: [AppComponent],<% if(experimentalZoneless) { %>
providers: [provideExperimentalZonelessChangeDetection()]<% } %>
}).compileComponents();
});

View File

@ -4,7 +4,5 @@ import { provideRouter } from '@angular/router';
import { routes } from './app.routes';<% } %>
export const appConfig: ApplicationConfig = {
providers: [
<% if(experimentalZoneless) { %>provideExperimentalZonelessChangeDetection()<% } else { %>provideZoneChangeDetection({ eventCoalescing: true })<% } %><% if (routing) {%>, provideRouter(routes)<% } %>
]
providers: [<% if(experimentalZoneless) { %>provideExperimentalZonelessChangeDetection()<% } else { %>provideZoneChangeDetection({ eventCoalescing: true })<% } %><% if (routing) {%>, provideRouter(routes)<% } %>]
};