Skip to content

Commit

Permalink
sync tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed Feb 15, 2024
1 parent a3ae076 commit bd71815
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/disable/disable.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func NewCommand() *cobra.Command {

tui.StdoutFromContext(cmd.Context()).
Success().
Printfln("Key [%s] was successfully disabled", key)
Printfln("Key [ %s ] was successfully disabled", key)

return nil
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/disable/tests/disable-a-key/stdout.golden
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---- exec command line 0: [disable KEY_B]
Key [KEY_B] was successfully disabled
Key [ KEY_B ] was successfully disabled
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions cmd/disable/tests/disable-key-b/env.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
KEY_A="I'm key A"

# Comment for KEY_B
#KEY_B="I'm key B"

KEY_C="I'm key C"
1 change: 1 addition & 0 deletions cmd/disable/tests/disable-key-b/stderr.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
---- exec command line 0: [disable KEY_B]
2 changes: 2 additions & 0 deletions cmd/disable/tests/disable-key-b/stdout.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---- exec command line 0: [disable KEY_B]
Key [ KEY_B ] was successfully disabled

0 comments on commit bd71815

Please sign in to comment.