File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
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
+ })
You can’t perform that action at this time.
0 commit comments