1
0

when ID = 0 is passed to a 'GetSthByID'-function, it now returns a 'not exist' error

This commit is contained in:
kolaente
2018-09-13 20:07:11 +02:00
parent 716b06feff
commit 382daac0dd
9 changed files with 25 additions and 9 deletions

View File

@ -4,7 +4,6 @@ import (
"github.com/stretchr/testify/assert"
"reflect"
"testing"
"fmt"
)
func TestTeamList(t *testing.T) {
@ -72,7 +71,6 @@ func TestTeamList(t *testing.T) {
tl6 := tl
tl6.ListID = 3
_, err = tl6.ReadAll(&user)
fmt.Println(tl6)
assert.Error(t, err)
assert.True(t, IsErrNeedToHaveListReadAccess(err))