From 6bb90375f4efb2f390a61ede0df70eea1ef1f50f Mon Sep 17 00:00:00 2001 From: Grant Ammons Date: Sun, 24 Apr 2016 10:04:53 -0400 Subject: Read from user's home directory --- file_store_test.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'file_store_test.go') diff --git a/file_store_test.go b/file_store_test.go index b7132a8..8bb23e0 100644 --- a/file_store_test.go +++ b/file_store_test.go @@ -1,9 +1,14 @@ package todolist -import "testing" +import ( + "testing" + + "github.com/stretchr/testify/assert" +) func TestFileStore(t *testing.T) { + assert := assert.New(t) store := &FileStore{FileLocation: "todos.json"} store.Load() - store.Data[0] + assert.Equal(store.Data[0].Subject, "this is the first subject", "") } -- cgit v1.3