From 326ccf25c225f56a64873c47b1fadd9d3cc24ae8 Mon Sep 17 00:00:00 2001
From: donal <donalspring@gmail.com>
Date: Mon, 16 Apr 2018 15:27:44 +0200
Subject: [PATCH] tdd lab ready to go

---
 tests/unit/javascript/actions.spec.js |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/tests/unit/javascript/actions.spec.js b/tests/unit/javascript/actions.spec.js
index b810653..37bd2b2 100644
--- a/tests/unit/javascript/actions.spec.js
+++ b/tests/unit/javascript/actions.spec.js
@@ -123,6 +123,13 @@
       done();
     });
   });
-  // TODO - test goes here!
-
+  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();
+    });
+  });
 });

--
Gitblit v1.9.3