1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2024-12-08 23:15:26 +01:00
Whalebird-desktop-client-ma.../spec/renderer/unit/store/TimelineSpace/HeaderMenu.spec.ts
2019-05-07 22:40:46 +09:00

21 lines
542 B
TypeScript

import HeaderMenu, { HeaderMenuState, MUTATION_TYPES } from '@/store/TimelineSpace/HeaderMenu'
describe('TimelineSpace/HeaderMenu', () => {
describe('mutations', () => {
let state: HeaderMenuState
beforeEach(() => {
state = {
title: 'Home',
reload: false,
loading: false
}
})
describe('changeReload', () => {
it('should be changed', () => {
HeaderMenu.mutations![MUTATION_TYPES.CHANGE_RELOAD](state, true)
expect(state.reload).toEqual(true)
})
})
})
})