title: Testing of angular 2 component not working
body: <p>As I am new to angular 2 I have cloned a project from git <a href="https://github.com/AngularClass/angular-starter" rel="nofollow noreferrer">https://github.com/AngularClass/angular-starter</a></p>
  
  <p>and make changes to it.
  I added folder banner and three files to it and make changes accordingly in app.module.ts,app.component.ts and app.route.ts. </p>
  
  <pre><code>        banner (folder name)
  
          banner.component.ts
  
      import { Component } from '@angular/core';
  
      @Component({
        selector: 'app-banner',
        template: '&lt;h1&gt;{{title}}&lt;/h1&gt;'
      })
      export class BannerComponent {
       public title = 'Test Tour of Heroes';
      }
          banner.component.spec.ts
  
      import { ComponentFixture, TestBed } from '@angular/core/testing';
      import { By } from '@angular/platform-browser';
      import { DebugElement } from '@angular/core';
      import { BannerComponent } from './banner.component';
  
      describe('BannerComponent', () =&gt; {
  
        let comp: BannerComponent;
        let fixture: ComponentFixture&lt;BannerComponent&gt;;
        let de: DebugElement;
        let el: HTMLElement;
  
        beforeEach(() =&gt; {
          TestBed.configureTestingModule({
            declarations: [ BannerComponent ], // declare the test component
          });
  
          fixture = TestBed.createComponent(BannerComponent);
  
          comp = fixture.componentInstance; // BannerComponent test instance
  
          // query for the title &lt;h1&gt; by CSS element selector
          de = fixture.debugElement.query(By.css('h1'));
          el = de.nativeElement;
        });
      });
  
          index.ts
      export * from './banner.component';
  </code></pre>
  
  <p>When I run the project by <code>npm start</code> command it displays the component but when I use <code>npm test</code>, it does not test my module. I have named my test by according to convention.
  So please help to test my module.</p>