Skip to content

Commit ada146c

Browse files
authored
Correct test to match the app component template
Fixes #6537
1 parent d1cac32 commit ada146c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@angular/cli/blueprints/ng/files/__path__/app/app.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ describe('AppComponent', () => {
3131
const fixture = TestBed.createComponent(AppComponent);
3232
fixture.detectChanges();
3333
const compiled = fixture.debugElement.nativeElement;
34-
expect(compiled.querySelector('h1').textContent).toContain('Welcome to <%= prefix %>!!');
34+
expect(compiled.querySelector('h1').textContent).toContain('<%= prefix %>');
3535
}));
3636
});

0 commit comments

Comments
 (0)