title: Jasmine test getting an unexpected result for angular application
body: <p>I have written Jasmine test using karma load runner for my angular 4 application. I am expecting the method to return false but is returning true for some reason.
  Not sure why ?</p>
  
  <p>Test 1</p>
  
  <pre class="lang-js prettyprint-override"><code>it('should return false because the current item max value is less to the current min value', () =&gt; {
      comp.domicileInfo.taxAssesment.items = [{maxSize: 30000000 , minSize: 30000000 , values: [2 , 2]}];
      let isMax: boolean = comp.isMaxValid(comp.domicileInfo.taxAssesment.items , 1);
      console.log(isMax);
      console.log(comp.domicileInfo.taxAssesment.items);
      expect(isMax).toBe(false);
    });
  </code></pre>
  
  <p>method</p>
  
  <pre class="lang-js prettyprint-override"><code>isMaxValid(currentItem: any, item_IDX: number) {
      if (item_IDX === 0) {
        return true;
      }
  
      if (+currentItem.maxSize &lt;= +currentItem.minSize ) {
        return false;
      }
      return true;
    }
  </code></pre>
  
  <p>Test 2</p>
  
  <p>method : Please note the the first element in the array would contain minSize : 0 and maxSize: 20000000</p>
  
  <pre><code>isMinValid(currentItem: any, item_IDX: number) {
      if (item_IDX === 0) {
        return true;
      }
  
      let previousItem = this.domicileInfo.taxAssesment.items[item_IDX - 1];
      if (+currentItem.minSize !== +previousItem.maxSize  ) {
        return false;
      }
      return true;
    }
  
  
  
  fit('should return true because the current item min value is equal to the previous max value', () =&gt; {
      comp.domicileInfo.taxAssesment.items = [{maxSize: 30000000 , minSize: 20000000 , values: [2 , 2]}];
      let isMax: boolean = comp.isMinValid(comp.domicileInfo.taxAssesment.items[0] , 1);
      console.log(isMax);
      console.log(comp.domicileInfo.taxAssesment.items);
      expect(isMax).toBe(true);
    });
  </code></pre>