title: Unable to locate the function in spec file
body: <p><strong>Example.ts</strong></p>
  
  <pre><code>export class Example{
  
  public async initService(Id): Promise&lt;any&gt; {
  
  //promise logic
  
      }
  }
  </code></pre>
  
  <p><strong>Example.spec.ts</strong></p>
  
  <pre><code> //imported Example class correctly
  
      describe('testing', async () =&gt;{
         it('InitService test call', async ()=&gt;{
              let x = await Example.initService(id:any) //this line displays error as initService does not exist on type 'typeof AnnounceService'
      });
  });
  </code></pre>
  
  <p>I have imported the class <strong>Example</strong> correctly but then too unable to call the function of <strong>Example</strong> class in the <strong>Example.spec.ts</strong>.</p>