Skip to content

Commit 543cb9f

Browse files
Splaktarjelbourn
authored andcommitted
fix(schematics): dashboard schematic fails parsing declaration in spec (#13269)
remove space between <% to make parsing work remove space after %> to fix Dashboard Component to DashboardComponent add blank lines at ends of html/css files
1 parent d74e38c commit 543cb9f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/lib/schematics/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.__styleext__

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818

1919
.dashboard-card-content {
2020
text-align: center;
21-
}
21+
}

src/lib/schematics/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ <h1 class="mat-h1">Dashboard</h1>
2121
</mat-card>
2222
</mat-grid-tile>
2323
</mat-grid-list>
24-
</div>
24+
</div>

src/lib/schematics/dashboard/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ describe('<%= classify(name) %>Component', () => {
1717

1818
beforeEach(async(() => {
1919
TestBed.configureTestingModule({
20-
declarations: [< %= classify(name) %> Component],
20+
declarations: [<%= classify(name) %>Component],
2121
imports: [
2222
NoopAnimationsModule,
2323
LayoutModule,

0 commit comments

Comments
 (0)