From 78a403c450425ea86fad7df5737a4a53ed4c6714 Mon Sep 17 00:00:00 2001 From: donal <donalspring@gmail.com> Date: Mon, 16 Apr 2018 12:57:45 +0200 Subject: [PATCH] Template for TDD --- tests/unit/javascript/mutations.spec.js | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/unit/javascript/mutations.spec.js b/tests/unit/javascript/mutations.spec.js index eb77831..1a7fb82 100644 --- a/tests/unit/javascript/mutations.spec.js +++ b/tests/unit/javascript/mutations.spec.js @@ -91,15 +91,12 @@ it("it should MARK_TODO_IMPORTANT as false", () => { state.todos = importantTodos; // TODO - test goes here! - mutations.MARK_TODO_IMPORTANT(state, 0); - expect(state.todos[0].important).toBe(false); + }); it("it should MARK_TODO_IMPORTANT as true", () => { state.todos = importantTodos; // TODO - test goes here! - state.todos[0].important = false; - mutations.MARK_TODO_IMPORTANT(state, 0); - expect(state.todos[0].important).toBe(true); + }); }); -- Gitblit v1.9.3