acammies
2018-04-10 827ecda4a659fd5dd35fb88892abd645ca3bf861
test minor textual changes
1 files modified
4 ■■■■ changed files
tests/unit/NewTodo.spec.js 4 ●●●● patch | view | raw | blame | history
tests/unit/NewTodo.spec.js
@@ -31,11 +31,11 @@
    expect(methods.newTodoAdded).toHaveBeenCalled()
  });
  it("calls newTodoAdded() when keyup.enter hit.", () => {
  it("does not call newTodoAdded() when keyup.space hit.", () => {
    // time to try and test some vuex stuff and see if the methods are called when expected.
    const wrapper = shallow(NewTodo, { methods , localVue})
    const input = wrapper.find(".md-input");
    input.trigger('keydown.space')
    input.trigger('keyup.space')
    expect(methods.newTodoAdded).not.toHaveBeenCalled()
  });