Skip to content

Commit c072261

Browse files
Added pkg/alpha/update_test.go
1 parent 9ec6d31 commit c072261

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

pkg/cli/alpha/update_test.go

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
Copyright 2023 The Kubernetes Authors.
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
Unless required by applicable law or agreed to in writing, software
8+
distributed under the License is distributed on an "AS IS" BASIS,
9+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
See the License for the specific language governing permissions and
11+
limitations under the License.
12+
*/
13+
14+
package alpha
15+
16+
import (
17+
. "github.com/onsi/ginkgo/v2"
18+
. "github.com/onsi/gomega"
19+
)
20+
21+
var _ = Describe("NewUpdateCommand", func() {
22+
23+
When("NewUpdateCommand", func() {
24+
It("Testing the NewUpdateCommand", func() {
25+
cmd := NewUpdateCommand()
26+
Expect(cmd).NotTo(BeNil())
27+
Expect(cmd.Use).NotTo(Equal(""))
28+
Expect(cmd.Use).To(ContainSubstring("update"))
29+
Expect(cmd.Short).NotTo(Equal(""))
30+
Expect(cmd.Short).To(ContainSubstring("Update a Kubebuilder project to a newer version"))
31+
})
32+
})
33+
})

0 commit comments

Comments
 (0)