utils_test.go 461 B

12345678910111213141516171819202122
  1. package upcrmservice
  2. import (
  3. "testing"
  4. "time"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestUpcrmserviceGetDateStamp(t *testing.T) {
  8. convey.Convey("GetDateStamp", t, func(ctx convey.C) {
  9. var (
  10. timeStamp = time.Now()
  11. )
  12. ctx.Convey("When everything goes positive", func(ctx convey.C) {
  13. p1 := GetDateStamp(timeStamp)
  14. ctx.Convey("Then p1 should not be nil.", func(ctx convey.C) {
  15. ctx.So(p1, convey.ShouldNotBeNil)
  16. })
  17. })
  18. })
  19. }