data_test.go 377 B

123456789101112131415161718
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_UpdateWithdraw(t *testing.T) {
  8. Convey("growup-job UpdateWithdraw", t, WithService(func(s *Service) {
  9. newDate, oldDate := "2018-01", "2018-02"
  10. count := int64(0)
  11. err := s.UpdateWithdraw(context.Background(), oldDate, newDate, count)
  12. So(err, ShouldBeNil)
  13. }))
  14. }