commit

Will call the specified mutation on the store, just like vuex's commit method. If one doesn't exist, it will just continue. 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 ""