2019-04-08 18:09:12 +02:00
|
|
|
import HeaderMenu, { HeaderMenuState, MUTATION_TYPES } from '@/store/TimelineSpace/HeaderMenu'
|
2019-01-02 11:26:54 +01:00
|
|
|
|
|
|
|
describe('TimelineSpace/HeaderMenu', () => {
|
|
|
|
describe('mutations', () => {
|
2019-04-08 18:09:12 +02:00
|
|
|
let state: HeaderMenuState
|
2019-01-02 11:26:54 +01:00
|
|
|
beforeEach(() => {
|
|
|
|
state = {
|
|
|
|
title: 'Home',
|
2019-05-07 15:40:46 +02:00
|
|
|
reload: false,
|
|
|
|
loading: false
|
2019-01-02 11:26:54 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
describe('changeReload', () => {
|
|
|
|
it('should be changed', () => {
|
2019-04-08 18:09:12 +02:00
|
|
|
HeaderMenu.mutations![MUTATION_TYPES.CHANGE_RELOAD](state, true)
|
2019-01-02 11:26:54 +01:00
|
|
|
expect(state.reload).toEqual(true)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|