aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/file_store_test.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2016-04-24 10:22:33 -0400
committerGrant Ammons <gammons@gmail.com>2016-04-24 10:22:33 -0400
commit63893587cb41a1980318b60bf05fafbf433a24ab (patch)
tree39c93f3a1735ef33d028ab9ef44fc0ac15049208 /todolist/file_store_test.go
parent6bb90375f4efb2f390a61ede0df70eea1ef1f50f (diff)
Organize things a bit better
Diffstat (limited to 'todolist/file_store_test.go')
-rw-r--r--todolist/file_store_test.go14
1 files changed, 14 insertions, 0 deletions
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", "")
+}