title: Unexpected Value 'VoteComponent' declared by the module 'DynamicTestModule'
body: <p>I am very new to Angular / testing in general. Been working through the Angular documentation regarding testing and I am struggling. Have searched this site for answers but have been unsuccessful. I have also tried adding additional imports to the <code>app.module.ts</code> file.</p>
  
  <p>Using Jasmine, receiving this error:
  <code>Error: Unexpected value 'VoteComponent' declared by the module 'DynamicTestModule'</code></p>
  
  <p>The component.ts file is very basic:</p>
  
  <pre><code>export class VoteComponent { 
  
    totalVotes = 0; 
  
    upVote() { 
      this.totalVotes++;
    }
  
    downVote() { 
      this.totalVotes--;
    }
  }
  </code></pre>
  
  <p>The spec.ts file: (I have not written code for <code>downVote()</code>)</p>
  
  <pre><code>import { ComponentFixture, TestBed } from '@angular/core/testing';
  import { VoteComponent } from './vote.component';
  
  describe ('VoteComponent', () =&gt; { 
    let comp: VoteComponent;
  
    beforeEach(() =&gt; { 
      TestBed.configureTestingModule({ 
          declarations: [VoteComponent],    
      });
  
      const fixture = TestBed.createComponent(VoteComponent);
      comp = fixture.componentInstance;
  
    });
  
    it('should increment total votes when upvoted', () =&gt; { 
  
      comp.upVote();
  
      expect(comp.totalVotes).toBe(1); 
  
    });
  });
  </code></pre>
  
  <p>Any help will be greatly appreciated. Thank you.</p>