mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2024-12-12 00:45:19 +01:00
20 lines
446 B
JavaScript
20 lines
446 B
JavaScript
|
import HeaderMenu from '@/store/TimelineSpace/HeaderMenu'
|
||
|
|
||
|
describe('TimelineSpace/HeaderMenu', () => {
|
||
|
describe('mutations', () => {
|
||
|
let state
|
||
|
beforeEach(() => {
|
||
|
state = {
|
||
|
title: 'Home',
|
||
|
reload: false
|
||
|
}
|
||
|
})
|
||
|
describe('changeReload', () => {
|
||
|
it('should be changed', () => {
|
||
|
HeaderMenu.mutations.changeReload(state, true)
|
||
|
expect(state.reload).toEqual(true)
|
||
|
})
|
||
|
})
|
||
|
})
|
||
|
})
|