promotion_test.go 277 B

1234567891011121314151617
  1. package dao
  2. import (
  3. "testing"
  4. . "github.com/smartystreets/goconvey/convey"
  5. )
  6. // TestHasPromotion
  7. func TestDao_HasPromotion(t *testing.T) {
  8. Convey("HasPromotion", t, func() {
  9. once.Do(startService)
  10. res := d.HasPromotion([]int64{78}, 1)
  11. So(res, ShouldBeFalse)
  12. })
  13. }