donal
2018-04-22 3bd680802264ee3f6d8e8dede670efb4d8de9878
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();
      });
  });