<commit_before>import { expect } from 'chai'
import store from '../../src/store'
import {
  TOGGLE_SIDEBAR,
  TOGGLE_USER_MENU
} from '../../src/store/mutation-types'


describe('main', () => {

  describe('actions', () => {
    it('toggleSidebar', () => {
      store._actions.toggleSidebar[0]({
        commit: store.commit,
        state: store._vm.state
      })
      expect(store._vm.isSidebarHidden).to.equal(false)
    })

    it('toggleUserMenu', () => {
      store._actions.toggleUserMenu[0]({
        commit: store.commit,
        state: store._vm.state
      })
      expect(store._vm.isUserMenuHidden).to.equal(false)
    })
  })

  describe('mutations', () => {
    it('TOGGLE_SIDEBAR', () => {
      store.commit(TOGGLE_SIDEBAR)
      expect(store._vm.isSidebarHidden).to.equal(true)
      store.commit(TOGGLE_SIDEBAR)
      expect(store._vm.isSidebarHidden).to.equal(false)
    })
    it('TOGGLE_USER_MENU', () => {
      store.commit(TOGGLE_USER_MENU)
      expect(store._vm.isUserMenuHidden).to.equal(true)
      store.commit(TOGGLE_USER_MENU)
      expect(store._vm.isUserMenuHidden).to.equal(false)
    })
  })
})<commit_msg>Fix tests for menu toggling<commit_after>import { expect } from 'chai'
import helpers from './helpers'

import store from '../../src/store'
import {
  TOGGLE_SIDEBAR,
  TOGGLE_USER_MENU
} from '../../src/store/mutation-types'


describe('main', () => {

  beforeEach(helpers.reset)
  afterEach(helpers.reset)

  describe('actions', () => {
    it('toggleSidebar', () => {
      helpers.runAction('toggleSidebar')
      expect(store._vm.isSidebarHidden).to.equal(false)
    })

    it('toggleUserMenu', () => {
      helpers.runAction('toggleUserMenu')
      expect(store._vm.isUserMenuHidden).to.equal(false)
    })
  })

  describe('mutations', () => {
    it('TOGGLE_SIDEBAR', () => {
      store.commit(TOGGLE_SIDEBAR)
      expect(store._vm.isSidebarHidden).to.equal(false)
      store.commit(TOGGLE_SIDEBAR)
      expect(store._vm.isSidebarHidden).to.equal(true)
    })
    it('TOGGLE_USER_MENU', () => {
      store.commit(TOGGLE_USER_MENU)
      expect(store._vm.isUserMenuHidden).to.equal(false)
      store.commit(TOGGLE_USER_MENU)
      expect(store._vm.isUserMenuHidden).to.equal(true)
    })
  })
})
{'fraction_non_alphanumeric': 0.1692512184315463, 'fraction_numerical': 0.0008861320336730173, 'mean_word_length': 3.158379373848987, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '5182040', 'n_tokens_mistral': 820, 'n_tokens_neox': 800, 'n_words': 82}