Skip to content

Commit

Permalink
Address comments left on the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
Brocco committed Mar 13, 2023
1 parent 682638c commit cba55bb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ import { AppComponent } from './app.component';

describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({<% if (routing) { %>
await TestBed.configureTestingModule({
imports: [
RouterTestingModule
],<% } %>
declarations: [
AppComponent
AppComponent<% if (routing) { %>,
RouterTestingModule<% } %>
],
}).compileComponents();
});
Expand All @@ -20,7 +18,7 @@ describe('AppComponent', () => {
expect(app).toBeTruthy();
});

it(`should have as title '<%= name %>'`, () => {
it(`should have the '<%= name %>' title`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app.title).toEqual('<%= name %>');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ApplicationConfig } from '@angular/platform-browser';<% if (routing) { %>
import { ApplicationConfig } from '@angular/core';<% if (routing) { %>
import { provideRouter } from '@angular/router';<% } %>
import { provideHttpClient } from '@angular/common/http';<% if (routing) { %>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<<%= prefix %>-root></<%= prefix %>-root>
<<%= selector %>></<%= selector %>>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ import { appConfig } from './app/app.config';
import { AppComponent } from './app/app.component';

bootstrapApplication(AppComponent, appConfig).catch((err) =>
console.error(err)
console.error(err);
);
1 change: 1 addition & 0 deletions packages/schematics/angular/application/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ function getStandaloneAppRules(
applyTemplates({
utils: strings,
...options,
selector: appRootSelector,
relativePathToWorkspaceRoot: relativePathToWorkspaceRoot(appDir),
appName: options.name,
folderName,
Expand Down

0 comments on commit cba55bb

Please sign in to comment.