<commit_before>import { expect } from 'chai'
import hasClass from '../../src/utils/hasClass'

describe('hasClass', () => {
  let div = document.createElement('div')

  it('should detect if element contains class', () => {
    div.className = "myClass"
    expect(hasClass(div, 'myClass')).to.equal(true)
  })

  it('should detect if element does not contain class', () => {
    div.className = ""
    expect(hasClass(div, 'myClass')).to.equal(false)
  })

  it('should detect if element with multiple classes contains class', () => {
    div.className = "extra myClass somethingElse"
    expect(hasClass(div, 'myClass')).to.equal(true)
  })

})
<commit_msg>Theme spec<commit_after>import { expect } from 'chai'
import hasClass from '../../src/utils/hasClass'

describe('hasClass', () => {
  let div = document.createElement('div')

  it('should detect if element contains class', () => {
    div.className = "jedi"
    expect(hasClass(div, 'jedi')).to.equal(true)
  })

  it('should detect if element does not contain class', () => {
    div.className = ""
    expect(hasClass(div, 'jedi')).to.equal(false)
  })

  it('should detect if element with multiple classes contains class', () => {
    div.className = "sith jedi bountyHunters"
    expect(hasClass(div, 'jedi')).to.equal(true)
  })

})

{'fraction_non_alphanumeric': 0.17297297297297298, 'fraction_numerical': 0.0, 'mean_word_length': 3.8721804511278197, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2616761', 'n_tokens_mistral': 412, 'n_tokens_neox': 408, 'n_words': 97}