Skip to content

Commit 8ce57fe

Browse files
cexbrayatjkrems
authored andcommitted
refactor(@schematics/angular): spacing fixes after experimental zoneless introduction
1 parent 1ac8b41 commit 8ce57fe

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

packages/schematics/angular/application/files/module-files/src/app/app.component.spec.ts.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ describe('AppComponent', () => {
1111
],<% } %>
1212
declarations: [
1313
AppComponent
14-
],
15-
<% if(experimentalZoneless) { %>providers: [provideExperimentalZonelessChangeDetection()]<% } %>
14+
],<% if(experimentalZoneless) { %>
15+
providers: [provideExperimentalZonelessChangeDetection()]<% } %>
1616
}).compileComponents();
1717
});
1818

packages/schematics/angular/application/files/standalone-files/src/app/app.component.spec.ts.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { AppComponent } from './app.component';
55
describe('AppComponent', () => {
66
beforeEach(async () => {
77
await TestBed.configureTestingModule({
8-
imports: [AppComponent],
9-
<% if(experimentalZoneless) { %>providers: [provideExperimentalZonelessChangeDetection()]<% } %>
8+
imports: [AppComponent],<% if(experimentalZoneless) { %>
9+
providers: [provideExperimentalZonelessChangeDetection()]<% } %>
1010
}).compileComponents();
1111
});
1212

packages/schematics/angular/application/files/standalone-files/src/app/app.config.ts.template

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@ import { provideRouter } from '@angular/router';
44
import { routes } from './app.routes';<% } %>
55

66
export const appConfig: ApplicationConfig = {
7-
providers: [
8-
<% if(experimentalZoneless) { %>provideExperimentalZonelessChangeDetection()<% } else { %>provideZoneChangeDetection({ eventCoalescing: true })<% } %><% if (routing) {%>, provideRouter(routes)<% } %>
9-
]
7+
providers: [<% if(experimentalZoneless) { %>provideExperimentalZonelessChangeDetection()<% } else { %>provideZoneChangeDetection({ eventCoalescing: true })<% } %><% if (routing) {%>, provideRouter(routes)<% } %>]
108
};

0 commit comments

Comments
 (0)