api_test.go 376 B

123456789101112131415161718192021
  1. package archive
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestRelateAids(t *testing.T) {
  8. var (
  9. c = context.TODO()
  10. aid = int64(1)
  11. )
  12. convey.Convey("Ping", t, func(ctx convey.C) {
  13. _, err := d.RelateAids(c, aid)
  14. ctx.Convey("Then err should not be nil.", func(ctx convey.C) {
  15. ctx.So(err, convey.ShouldNotBeNil)
  16. })
  17. })
  18. }