aboutsummaryrefslogtreecommitdiffstats
path: root/file_store_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'file_store_test.go')
-rw-r--r--file_store_test.go9
1 files changed, 7 insertions, 2 deletions
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", "")
}