blocky/cmd/version_test.go

18 lines
346 B
Go
Raw Normal View History

2021-01-19 21:52:24 +01:00
package cmd
import (
2022-03-03 11:27:27 +01:00
. "github.com/onsi/ginkgo/v2"
2021-01-19 21:52:24 +01:00
. "github.com/onsi/gomega"
)
var _ = Describe("Version command", func() {
When("Version command is called", func() {
It("should execute without error", func() {
c := NewVersionCommand()
2022-03-03 11:27:27 +01:00
c.SetArgs(make([]string, 0))
2021-01-19 21:52:24 +01:00
err := c.Execute()
Expect(err).Should(Succeed())
})
})
})