title: Angular 2 + Jasmine Unit Test - Getting Error TS2345
body: <p>I followed the unit testing from this website (author: Torgeir Helgevold) @:TGH <a href="http://www.syntaxsuccess.com/viewarticle/angular-2.0-unit-testing" rel="nofollow">http://www.syntaxsuccess.com/viewarticle/angular-2.0-unit-testing</a> to do unit testing, but got an error:</p>
  
  <p>"Error:(15, 39) TS2345: Argument of type 'FunctionWithParamTokens' is not assignable to parameter of type '(done: () => void) => void'."</p>
  
  <pre><code>it('should define full name2', inject([DisplayName], (displayName) =&gt; {
              displayName.firstName = 'Joe';
              displayName.lastName = 'Smith';
              displayName.generateFullName();
              expect(displayName.fullName).toBe('Joe Smith');
          }));
  </code></pre>
  
  <p>Is the code in this website out of date? Can anyone give me some reference to learn unit testing with Anuglar2 + Jasmine?</p>