cheat_test.go 589 B

12345678910111213141516171819202122232425
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. "time"
  6. . "github.com/smartystreets/goconvey/convey"
  7. )
  8. func Test_UpdateCheatHTTP(t *testing.T) {
  9. Convey("growup-job UpdateCheatHTTP", t, WithService(func(s *Service) {
  10. date := time.Now().Add(-24 * time.Hour)
  11. err := s.UpdateCheatHTTP(context.Background(), date)
  12. So(err, ShouldBeNil)
  13. }))
  14. }
  15. func Test_CheatStatistics(t *testing.T) {
  16. Convey("growup-job CheatStatistics", t, WithService(func(s *Service) {
  17. date := time.Now().Add(-24 * time.Hour)
  18. err := s.CheatStatistics(context.Background(), date)
  19. So(err, ShouldBeNil)
  20. }))
  21. }