<commit_before>
let sinon from 'sinon/pkg/sinon.js');
var QueryStringUtils from '../../../lib/js/app/utils/QueryStringUtils');

describe('utils/QueryStringUtils', () => {
  
  describe('getQueryAttributes', () => {
    
    it('should properly parse funnel step filters', () => {
      sinon.stub(QueryStringUtils, 'getSearchString').returns('query[steps][0][filters][0][property_value][0]=testing');
      assert.sameMembers(QueryStringUtils.getQueryAttributes().query.steps[0].filters[0].property_value, ['testing']);
      QueryStringUtils.getSearchString.restore();
    });

  });

});<commit_msg>fix tests for query string util<commit_after>import QueryStringUtils from '../../../lib/js/app/utils/QueryStringUtils';

describe('utils/QueryStringUtils', () => {

  describe('getQueryAttributes', () => {

    it('should properly parse funnel step filters', () => {
      const spy = jest.spyOn(QueryStringUtils, 'getSearchString').mockReturnValue('query[steps][0][filters][0][property_value][0]=testing');
      expect(QueryStringUtils.getQueryAttributes().query.steps[0].filters[0].property_value).toEqual(['testing']);
      spy.mockRestore();
    });

  });

});
{'fraction_non_alphanumeric': 0.1892123287671233, 'fraction_numerical': 0.008561643835616438, 'mean_word_length': 4.994871794871795, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3506043', 'n_tokens_mistral': 343, 'n_tokens_neox': 339, 'n_words': 45}