title: How to Verify each line of the function with negative values using Jest
body: <p>I have a function which returns nothing. How can I write the Jest test cases for negative scenarios. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>setTimeIntervalTrackConfiguration(
      trackIntervalConfiguration: BellIntervalData[],
    ): void {
      for (let i = 0; i &lt; trackIntervalConfiguration.length; i) {
        const config = trackIntervalConfiguration[i]
        const url = config.track.url
        const fileDescriptor = Number(url)
        if (!Number.isNaN(fileDescriptor)) {
          config.track.url = super.resolveAsset(fileDescriptor).uri
        }
      }
      this.nativePlayer.setTimeIntervalTrackConfiguration(
        trackIntervalConfiguration,
      )
    }</code></pre>
  </div>
  </div>
  </p>
  
  <ol>
  <li>How to Verify the number of times for loop execution.</li>
  <li>Other negative scenarios. </li>
  </ol>