function checkHistory(additional) {
        const variantPrefix = {
          timestamp: jasmine.any(Number),
          id: 0,
          type: 'variant',
          fromAdaptation: true,
          bandwidth: 200,
        };

        const textPrefix = {
          timestamp: jasmine.any(Number),
          id: 4,
          type: 'text',
          fromAdaptation: true,
          bandwidth: null,
        };
        const switchHistory = player.getStats().switchHistory;

        expect(switchHistory[0]).toEqual(variantPrefix);
        expect(switchHistory[1]).toEqual(textPrefix);
        expect(switchHistory.slice(2)).toEqual(additional);
      }
Checks that the switch history is correct.
@param {!Array<shaka.extern.TrackChoice>} additional