all files / src/vuex/ actions.js

63.64% Statements 14/22
100% Branches 8/8
20% Functions 1/5
20% Lines 2/10
7 statements, 5 branches Ignored     
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18                                  
import * as types from './mutation_types'
 
export default {
  start: ({ commit }) => {
    commit(types.START)
  },
  pause: ({ commit }) => {
    commit(types.PAUSE)
  },
  stop: ({ commit }) => {
    commit(types.STOP)
  },
  toggleSound: ({ commit }) => {
    commit(types.TOGGLE_SOUND)
  }
}