Files
cunicu/pkg/proto/common_test.go
Steffen Vogel dad8d5996b update Go module path
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2022-09-08 17:42:12 +02:00

19 lines
305 B
Go

package proto_test
import (
"time"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/stv0g/cunicu/pkg/proto"
)
var _ = Context("common", func() {
It("time", func() {
now := time.Now()
protonow := proto.Time(now)
Expect(protonow.Time()).To(BeTemporally("==", now))
})
})