You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app.component.spec.ts 755B

1234567891011121314151617181920212223242526
  1. import { TestBed, async } from '@angular/core/testing';
  2. import { AppComponent } from './app.component';
  3. describe('AppComponent', () => {
  4. beforeEach(async(() => {
  5. TestBed.configureTestingModule({
  6. declarations: [
  7. AppComponent
  8. ],
  9. }).compileComponents();
  10. }));
  11. it('should create the app', () => {
  12. const fixture = TestBed.createComponent(AppComponent);
  13. const app = fixture.componentInstance;
  14. expect(app).toBeTruthy();
  15. });
  16. it('should render title', () => {
  17. const fixture = TestBed.createComponent(AppComponent);
  18. fixture.detectChanges();
  19. const compiled = fixture.nativeElement;
  20. expect(compiled.querySelector('.content span').textContent).toContain('Einkaufszettel app is running!');
  21. });
  22. });