message: Adding unit test that verifies that make sure that recent updates fixes
diff: @@ -261,20 +261,30 @@ describe('Reported issues', (): void => {
  cmpApi.update(tcString, false);
  cmpApi.update(tcString, true);
  cmpApi.update(tcString, false);
  + cmpApi.update(tcString, true);
  + cmpApi.update(tcString, false);
  +
  + expect(spy.callCount, 'spy callCount').to.equal(5);
  +
  + let tcData = spy.getCall(0).args[0];
  +
  + expect(tcData.eventStatus, `call 0 eventStatus`).to.equal(EventStatus.TC_LOADED);
  +
  + tcData = spy.getCall(1).args[0];
  - expect(spy.calledThrice, 'spy calledThrice').to.be.true;
  + expect(tcData.eventStatus, `call 1 eventStatus`).to.equal(EventStatus.CMP_UI_SHOWN);
  - let tcData = spy.firstCall.args[0];
  + tcData = spy.getCall(2).args[0];
  - expect(tcData.eventStatus, `firstCall eventStatus`).to.equal(EventStatus.TC_LOADED);
  + expect(tcData.eventStatus, `call 2 eventStatus`).to.equal(EventStatus.USER_ACTION_COMPLETE);
  - tcData = spy.secondCall.args[0];
  + tcData = spy.getCall(3).args[0];
  - expect(tcData.eventStatus, `secondCall eventStatus`).to.equal(EventStatus.CMP_UI_SHOWN);
  + expect(tcData.eventStatus, `call 3 eventStatus`).to.equal(EventStatus.CMP_UI_SHOWN);
  - tcData = spy.thirdCall.args[0];
  + tcData = spy.getCall(4).args[0];
  - expect(tcData.eventStatus, `thirdCall eventStatus`).to.equal(EventStatus.USER_ACTION_COMPLETE);
  + expect(tcData.eventStatus, `call 4 eventStatus`).to.equal(EventStatus.USER_ACTION_COMPLETE);
  });
  