All files / tests/unit utils-test.ts

100% Statements 9/9
100% Branches 6/6
100% Functions 4/4
100% Lines 7/7
1 2 3 4 5 6 7 8 9 10 11 125x   15x 15x 15x     15x 15x 15x    
import Vue from "vue";
 
export const redo = (store: any) => async (namespace: string = "") => {
  await store.dispatch(`${namespace ? `${namespace}/` : ""}redo`);
  await Vue.nextTick();
};
 
export const undo = (store: any) => async (namespace: string = "") => {
  await store.dispatch(`${namespace ? `${namespace}/` : ""}undo`);
  await Vue.nextTick();
};