Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed Feb 15, 2024
1 parent 6bb1f4c commit a3ae076
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---- exec command line 0: [disable KEY_B]
WARNING: The key [KEY_B] is already disabled
WARNING: The key [ KEY_B ] is already disabled
2 changes: 1 addition & 1 deletion cmd/disable/tests/invalid-key/stderr.golden
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---- exec command line 0: [disable NONEXISTING_KEY]
Error: Could not find KEY [NONEXISTING_KEY]
Error: Could not find KEY [ NONEXISTING_KEY ]
Run 'dottie disable --help' for usage.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---- exec command line 0: [enable KEY_B]
WARNING: The key [KEY_B] is already enabled
WARNING: The key [ KEY_B ] is already enabled
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---- exec command line 0: [enable KEY_B]
Key [KEY_B] was successfully enabled
Key [ KEY_B ] was successfully enabled
2 changes: 1 addition & 1 deletion cmd/enable/tests/enable-a-key/stdout.golden
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---- exec command line 0: [enable KEY_B]
Key [KEY_B] was successfully enabled
Key [ KEY_B ] was successfully enabled
2 changes: 1 addition & 1 deletion cmd/enable/tests/invalid-key/stderr.golden
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---- exec command line 0: [enable NONEXISTING_KEY]
Error: Could not find KEY [NONEXISTING_KEY]
Error: Could not find KEY [ NONEXISTING_KEY ]
Run 'dottie enable --help' for usage.
16 changes: 8 additions & 8 deletions cmd/set/tests/manipulate-empty/stdout.golden
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
---- exec command line 0: [set SOME_KEY=SOME_VALUE]
Key [SOME_KEY] was successfully upserted
Key [ SOME_KEY ] was successfully upserted
File was successfully saved
---- exec command line 1: [set ANOTHER_KEY=ANOTHER_VALUE --quote-style single]
Key [ANOTHER_KEY] was successfully upserted
Key [ ANOTHER_KEY ] was successfully upserted
File was successfully saved
---- exec command line 2: [set SECOND_KEY=should be before ANOTHER_KEY --before ANOTHER_KEY]
Key [SECOND_KEY] was successfully upserted
Key [ SECOND_KEY ] was successfully upserted
File was successfully saved
---- exec command line 3: [set TRUE_SECOND_KEY=HA, I'm after SOME_KEY, so I'm before ANOTHER_KEY now --after SOME_KEY]
Key [TRUE_SECOND_KEY] was successfully upserted
Key [ TRUE_SECOND_KEY ] was successfully upserted
File was successfully saved
---- exec command line 4: [set SECOND_KEY=damn, I'm the third key now]
Key [SECOND_KEY] was successfully upserted
Key [ SECOND_KEY ] was successfully upserted
File was successfully saved
---- exec command line 5: [set SOME_KEY=ANOTHER_VALUE --comment I'm a comment --comment I'm another comment]
Key [SOME_KEY] was successfully upserted
Key [ SOME_KEY ] was successfully upserted
File was successfully saved
---- exec command line 6: [set A_NUMBER=1 --comment @dottie/validate number]
Key [A_NUMBER] was successfully upserted
Key [ A_NUMBER ] was successfully upserted
File was successfully saved
---- exec command line 7: [set NOT_A_NUMBER=abc --comment @dottie/validate number]
---- exec command line 8: [set A_NUMBER=2]
Key [A_NUMBER] was successfully upserted
Key [ A_NUMBER ] was successfully upserted
File was successfully saved

0 comments on commit a3ae076

Please sign in to comment.