account_test.go 380 B

12345678910111213141516
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestGetUserCards(t *testing.T) {
  8. convey.Convey("GetUserCards", t, func() {
  9. cards, _ := d.GetUserCards(context.TODO(), []int64{27515405, 27515305})
  10. convey.So(len(cards.Cards), convey.ShouldEqual, 2)
  11. convey.So(cards.Cards[27515305].Name, convey.ShouldEqual, "Test000044")
  12. })
  13. }