From 63893587cb41a1980318b60bf05fafbf433a24ab Mon Sep 17 00:00:00 2001 From: Grant Ammons Date: Sun, 24 Apr 2016 10:22:33 -0400 Subject: Organize things a bit better --- todolist/file_store_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 todolist/file_store_test.go (limited to 'todolist/file_store_test.go') diff --git a/todolist/file_store_test.go b/todolist/file_store_test.go new file mode 100644 index 0000000..8bb23e0 --- /dev/null +++ b/todolist/file_store_test.go @@ -0,0 +1,14 @@ +package todolist + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestFileStore(t *testing.T) { + assert := assert.New(t) + store := &FileStore{FileLocation: "todos.json"} + store.Load() + assert.Equal(store.Data[0].Subject, "this is the first subject", "") +} -- cgit v1.3