subtitle_test.go 501 B

12345678910111213141516171819202122232425
  1. package subtitle
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestSubtitleUpdate(t *testing.T) {
  8. convey.Convey("Update", t, func(ctx convey.C) {
  9. var (
  10. c = context.Background()
  11. aid = int64(10110826)
  12. open bool
  13. lan = ""
  14. )
  15. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  16. err := d.Update(c, aid, open, lan)
  17. ctx.Convey("Then err should be nil.", func(ctx convey.C) {
  18. ctx.So(err, convey.ShouldBeNil)
  19. })
  20. })
  21. })
  22. }