<commit_before>import * as getters from 'src/vuex/getters'

const state = {
  lessons: [
    {title: 'Title 0'},
    {title: 'Title 1', sections: [
      {task: 'Section 1'},
      {task: 'Section 2', checkSolved () { return true }},
      {task: 'Section 3'}
    ]}
  ],
  currentSection: 2,
  currentLesson: 2,
  completedLessons: [1, 2]
}

describe('getters', () => {
  describe('getLessons', () => {
    it('should return a list of title and index', () => {
      const result = getters.getLessons(state)
      expect(result).to.deep.equal([
        {title: 'Title 0', index: 0},
        {title: 'Title 1', index: 1}
      ])
    })
  })

  describe('getCompletedSectionCount', () => {
    it('should return the current section - 1', () => {
      const result = getters.getCompletedSectionCount(state)
      expect(result).to.equal(1)
    })
  })

  describe('getSectionLength', () => {
    it('should return length of current section', () => {
      const result = getters.getSectionLength(state)
      expect(result).to.equal(3)
    })
  })

  describe('getCompletedCount', () => {
    it('should return how many lessons are completed', () => {
      const result = getters.getCompletedCount(state)
      expect(result).to.equal(2)
    })
  })

  describe('getLessonCount', () => {
    it('should return how many lessons there are', () => {
      const result = getters.getLessonCount(state)
      expect(result).to.equal(2)
    })
  })

  describe('getSection', () => {
    it('should return the current section', () => {
      const result = getters.getSection(state)
      expect(result.task).to.equal('Section 2')
    })
  })

  describe('getTask', () => {
    it('should return the current sections task', () => {
      const result = getters.getTask(state)
      expect(result).to.equal('Section 2')
    })
  })

  describe('getOutput', () => {
    it('should return the output', () => {
      const result = getters.getOutput(state)
      expect(result).to.equal()
    })
  })

  describe('getHistory', () => {
    it('should return the history', () => {
      const result = getters.getHistory(state)
      expect(result).to.equal()
    })
  })

  describe('getSolved', () => {
    it('should return if the current section is solved', () => {
      const result = getters.getSolved(state)
      expect(result).to.equal(true)
    })
  })
})<commit_msg>Add missing test to fix tests<commit_after>import * as getters from 'src/vuex/getters'

const state = {
  lessons: [
    {title: 'Title 0'},
    {title: 'Title 1', sections: [
      {task: 'Section 1'},
      {task: 'Section 2', checkSolved () { return true }},
      {task: 'Section 3'}
    ]}
  ],
  currentSection: 2,
  currentLesson: 2,
  completedLessons: [1, 2]
}

describe('getters', () => {
  describe('getLessons', () => {
    it('should return a list of title and index', () => {
      const result = getters.getLessons(state)
      expect(result).to.deep.equal([
        {title: 'Title 0', index: 0},
        {title: 'Title 1', index: 1}
      ])
    })
  })

  describe('getCompletedSectionCount', () => {
    it('should return the current section - 1', () => {
      const result = getters.getCompletedSectionCount(state)
      expect(result).to.equal(1)
    })
  })

  describe('getSectionLength', () => {
    it('should return length of current section', () => {
      const result = getters.getSectionLength(state)
      expect(result).to.equal(3)
    })
  })

  describe('getCompletedCount', () => {
    it('should return how many lessons are completed', () => {
      const result = getters.getCompletedCount(state)
      expect(result).to.equal(2)
    })
  })

  describe('getLessonCount', () => {
    it('should return how many lessons there are', () => {
      const result = getters.getLessonCount(state)
      expect(result).to.equal(2)
    })
  })

  describe('getSection', () => {
    it('should return the current section', () => {
      const result = getters.getSection(state)
      expect(result.task).to.equal('Section 2')
    })
  })

  describe('getTask', () => {
    it('should return the current sections task', () => {
      const result = getters.getTask(state)
      expect(result).to.equal('Section 2')
    })
  })

  describe('getOutput', () => {
    it('should return the output', () => {
      const result = getters.getOutput(state)
      expect(result).to.equal()
    })
  })

  describe('getHistory', () => {
    it('should return the history', () => {
      const result = getters.getHistory(state)
      expect(result).to.equal()
    })
  })

  describe('getSolved', () => {
    it('should return if the current section is solved', () => {
      const result = getters.getSolved(state)
      expect(result).to.equal(true)
    })

    it('should return if the current section has ever been solved', () => {
      const state = {
        lessons: [
          {title: 'Title 0'},
          {title: 'Title 1', sections: [
            {task: 'Section 1'},
            {task: 'Section 2', checkSolved () { return false }},
            {task: 'Section 3'}
          ]}
        ],
        currentSection: 2,
        currentLesson: 2,
        completedLessons: [1, 2],
        solvedCurrentSection: true
      }
      const result = getters.getSolved(state)
      expect(result).to.equal(true)
    })
  })
})
{'fraction_non_alphanumeric': 0.17040105441536435, 'fraction_numerical': 0.009226134437958953, 'mean_word_length': 2.688888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 46, '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': '3844941', 'n_tokens_mistral': 1693, 'n_tokens_neox': 1634, 'n_words': 366}