1
0
This commit is contained in:
kolaente
2018-07-27 15:53:01 +02:00
parent 628f3eee64
commit 62ac4c2a74
2 changed files with 6 additions and 6 deletions

View File

@ -1,9 +1,9 @@
package models
import (
"testing"
"github.com/stretchr/testify/assert"
"reflect"
"testing"
)
func TestList_ReadAll(t *testing.T) {
@ -27,7 +27,7 @@ func TestList_ReadAll(t *testing.T) {
assert.Equal(t, s.Len(), 1)
// Try getting lists for a nonexistant user
_, err = lists2.ReadAll(&User{ID:984234})
_, err = lists2.ReadAll(&User{ID: 984234})
assert.Error(t, err)
assert.True(t, IsErrUserDoesNotExist(err))
}