combinemails_test.go 506 B

123456789101112131415161718192021222324252627
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_CombineMailsByHTTP(t *testing.T) {
  8. Convey("growup-job", t, WithService(func(s *Service) {
  9. var (
  10. year = 2018
  11. month = 5
  12. day = 16
  13. )
  14. err := s.CombineMailsByHTTP(context.Background(), year, month, day)
  15. So(err, ShouldBeNil)
  16. }))
  17. }
  18. func Test_CombineMails(t *testing.T) {
  19. Convey("growup-job", t, WithService(func(s *Service) {
  20. err := s.CombineMails()
  21. So(err, ShouldBeNil)
  22. }))
  23. }