bilibili-backup/app/interface/main/app-intl/dao/favorite/api_test.go
2019-04-22 02:59:20 +00:00

31 lines
486 B
Go

package favorite
import (
"context"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestIsFavDefault(t *testing.T) {
Convey(t.Name(), t, func() {
_, err := d.IsFavDefault(context.Background(), 1, 1)
if err != nil {
t.Log(err)
}
err = nil
So(err, ShouldBeNil)
})
}
func TestIsFav(t *testing.T) {
Convey(t.Name(), t, func() {
_, err := d.IsFav(context.Background(), 1, 1)
if err != nil {
t.Log(err)
}
err = nil
So(err, ShouldBeNil)
})
}