<commit_before>
  describe('slider tests', function () {

    it('Should have MaterialSlider globally available', function () {
      expect(MaterialSlider).to.be.a('function');
    });

    it('Should be upgraded to a MaterialSlider successfully', function () {
      var el = document.createElement('input'),
        parent = document.createElement('div');
      el.type = 'range';
      parent.appendChild(el);
      
      componentHandler.upgradeElement(el, 'MaterialSlider');
      var upgraded = el.getAttribute('data-upgraded');
      expect(upgraded).to.contain('MaterialSlider');
    });
  });<commit_msg>Update MaterialSlider unit test with chai-jquery<commit_after>
  describe('slider tests', function () {

    it('Should have MaterialSlider globally available', function () {
      expect(MaterialSlider).to.be.a('function');
    });

    it('Should be upgraded to a MaterialSlider successfully', function () {
      var el = document.createElement('input'),
        parent = document.createElement('div');
      el.type = 'range';
      parent.appendChild(el);

      componentHandler.upgradeElement(el, 'MaterialSlider');
      expect($(el)).to.have.data('upgraded', ',MaterialSlider');
    });
  });
{'fraction_non_alphanumeric': 0.14884868421052633, 'fraction_numerical': 0.0, 'mean_word_length': 3.6273764258555135, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3264172', 'n_tokens_mistral': 321, 'n_tokens_neox': 320, 'n_words': 69}