Skip to content

Commit

Permalink
fixed failing tests
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Gahlot <[email protected]>
  • Loading branch information
gauravgahlot committed Jan 4, 2021
1 parent f84f2c5 commit 1138340
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/tink-cli/cmd/template/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
var updateCmd = &cobra.Command{
Use: "update [id] [flags]",
Short: "update a workflow template",
Long: `The update command allows you change the definition of an existing workflow template :
Long: `The update command allows you change the definition of an existing workflow template:
# Update an existing template:
$ tink template update 614168df-45a5-11eb-b13d-0242ac120003 --file /tmp/example.tmpl
Expand Down
8 changes: 4 additions & 4 deletions cmd/tink-cli/cmd/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ func Test_templateCmd(t *testing.T) {
if err := root.Execute(); err != nil {
t.Error(err)
}
if !strings.Contains(out.String(), "create a workflow template") {
t.Error("expected output should include create a workflow template")
if !strings.Contains(out.String(), "Create template using the --file flag") {
t.Error("expected output should include \"Create template using the --file flag\"")
}
},
},
Expand Down Expand Up @@ -112,8 +112,8 @@ func Test_templateCmd(t *testing.T) {
if err := root.Execute(); err != nil {
t.Error(err)
}
if !strings.Contains(out.String(), "update a template") {
t.Error("expected output should include update a template")
if !strings.Contains(out.String(), "Update an existing template") {
t.Error("expected output should include \"Update an existing template\"")
}
},
},
Expand Down

0 comments on commit 1138340

Please sign in to comment.