aboutsummaryrefslogtreecommitdiffstats
path: root/file_store_test.go
blob: 8bb23e0e0f3f6ed2672cc71524ba5283541671f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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", "")
}