I've got a pretty complex Vuex action that I need to test - one that needs access not only to {commit}, but to the whole shebang - {commit, dispatch, state, getters}.

I want to test actions.getTotals() here. How would you go about this in a Mocha/Chai based framework?

Keep in mind that I don't have to mock anything from the API - I will be testing against a local database.