title: How to unit test model interfaces in typescript?
body: <pre><code>export interface User {
      name: string;
  }
  </code></pre>
  
  <p>How can I unit test the above interface, so Karma could show it in the code coverage report?</p>
  
  <p>I already tried creating the object and assert some properties, but didn't work. The test passes but karma doesn't consider it in the code coverage report.</p>
  
  <pre><code>import { User } from "./user";
  
  describe('User', () =&gt; {
  
      it('test', () =&gt; {
          const obj: User = {
              name: "xxx",
  
          }
          expect(obj.name).toEqual("xxx");
      });
  
  });
  </code></pre>