You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

16 lines
380 B

package dao
import (
"context"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestGetUserCards(t *testing.T) {
convey.Convey("GetUserCards", t, func() {
cards, _ := d.GetUserCards(context.TODO(), []int64{27515405, 27515305})
convey.So(len(cards.Cards), convey.ShouldEqual, 2)
convey.So(cards.Cards[27515305].Name, convey.ShouldEqual, "Test000044")
})
}