tests/unit/javascript/actions.spec.js
@@ -1,5 +1,4 @@ import actions from "@/store/actions"; import * as all from "../setup.js"; import axios from "axios"; import MockAdapter from "axios-mock-adapter"; import sinon from "sinon"; @@ -129,8 +128,8 @@ actions .updateTodo({ commit, state }, { id: 1, important: true }) .then(() => { // console.log(commit.firstCall.args[0]) expect(commit.firstCall.args[0]).toBe("MARK_TODO_IMPORTANT"); // TODO - test goes here! done(); }); });