mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-10-07 17:51:16 +08:00
19 lines
305 B
Go
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))
|
|
})
|
|
})
|