dispatch

Will call the specified action on the store, just like vuex's dispatch method. If one doesn't exist, it will just return a resolved promise. This is useful if you just want to test that your component makes a commit, but you don't want to worry about modifying state etc.

Using the store.when method, you can specify behaviour and response values.

results matching ""

    No results matching ""