<commit_before>import History from '../../../src/history'

describe('History::setLimit', function() {
  const action = n => n

  it('sets the correct size given Infinity', function() {
    const history = new History()
    history.setLimit(Infinity)

    expect(history.limit).toEqual(Infinity)
  })

  it('sets the correct size given an integer', function() {
    const history = new History()
    history.setLimit(10)

    expect(history.limit).toEqual(10)
  })

  it('sets the limit to 0 given a negative integer', function() {
    const history = new History()
    history.setLimit(-10)

    expect(history.limit).toEqual(0)
  })
})<commit_msg>Remove unused variable that caused linter warning<commit_after>import History from '../../../src/history'

describe('History::setLimit', function() {
  it('sets the correct size given Infinity', function() {
    const history = new History()
    history.setLimit(Infinity)

    expect(history.limit).toEqual(Infinity)
  })

  it('sets the correct size given an integer', function() {
    const history = new History()
    history.setLimit(10)

    expect(history.limit).toEqual(10)
  })

  it('sets the limit to 0 given a negative integer', function() {
    const history = new History()
    history.setLimit(-10)

    expect(history.limit).toEqual(0)
  })
})
{'fraction_non_alphanumeric': 0.14001530221882172, 'fraction_numerical': 0.01224177505738332, 'mean_word_length': 3.6382978723404253, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3499622', 'n_tokens_mistral': 389, 'n_tokens_neox': 375, 'n_words': 108}