title: Unexpected value 'DecoratorFactory' imported by the module 'DynamicTestModule'. Please add a @NgModule annotation
body: <p>This is my spec file:</p>
  
  <pre><code>import { ComponentFixture, TestBed, async } from '@angular/core/testing';
  import { By }              from '@angular/platform-browser';
  import { DebugElement }    from '@angular/core';
  import { ScorecardComponent } from './scorecard.component';
  import { DataService } from '../data.service';
  import { HttpModule } from '@angular/http';
  import { Component } from '@angular/core';
  
  describe('ScorecardComponent', () =&gt; {
  
    let comp:    ScorecardComponent;
    let fixture: ComponentFixture&lt;ScorecardComponent&gt;;
    let de:      DebugElement;
    let el:      HTMLElement;
  
    beforeEach(async(() =&gt; {
      TestBed.configureTestingModule({
        declarations: [ ScorecardComponent ],
        imports: [ Component, HttpModule ],  
        providers: [ DataService ]  
      })
      .compileComponents();
    }));
  
    beforeEach(() =&gt; {
      fixture = TestBed.createComponent(ScorecardComponent);
      comp = fixture.componentInstance;
      fixture.detectChanges();
    });
  
    it('should create', () =&gt; {
      expect(comp).toBeTruthy();
    });
  
  
  });
  </code></pre>
  
  <p>I am getting this error:    </p>
  
  <blockquote>
    <p>Unexpected value 'DecoratorFactory' imported by the module
    'DynamicTestModule'. Please add a @NgModule annotation.</p>
  </blockquote>