| | |
| | | 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"; |
| | |
| | | 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(); |
| | | }); |
| | | }); |
| | | }); |