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";
@@ -126,10 +125,12 @@
  it("should call MARK_TODO_IMPORTANT", done => {
    const commit = sinon.spy();
    state.todos = todos;
    actions.updateTodo({ commit, state }, { id: 1 , important: true }).then(() => {
      // TODO - test goes here!
      done();
    });
    actions
      .updateTodo({ commit, state }, { id: 1, important: true })
      .then(() => {
        // TODO - test goes here!
        done();
      });
  });
});