From a3ae076cfe6ccb92b87e2c13348d9f8280d57fc1 Mon Sep 17 00:00:00 2001 From: Christian Winther Date: Thu, 15 Feb 2024 22:24:24 +0100 Subject: [PATCH] update tests --- .../disable-a-key-already-disabled/stderr.golden | 2 +- cmd/disable/tests/invalid-key/stderr.golden | 2 +- .../enable-a-key-already-enabled/stderr.golden | 2 +- .../enable-a-key-already-enabled/stdout.golden | 2 +- cmd/enable/tests/enable-a-key/stdout.golden | 2 +- cmd/enable/tests/invalid-key/stderr.golden | 2 +- cmd/set/tests/manipulate-empty/stdout.golden | 16 ++++++++-------- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/cmd/disable/tests/disable-a-key-already-disabled/stderr.golden b/cmd/disable/tests/disable-a-key-already-disabled/stderr.golden index 8188166..5f374f5 100644 --- a/cmd/disable/tests/disable-a-key-already-disabled/stderr.golden +++ b/cmd/disable/tests/disable-a-key-already-disabled/stderr.golden @@ -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 diff --git a/cmd/disable/tests/invalid-key/stderr.golden b/cmd/disable/tests/invalid-key/stderr.golden index e91443c..39a71a7 100644 --- a/cmd/disable/tests/invalid-key/stderr.golden +++ b/cmd/disable/tests/invalid-key/stderr.golden @@ -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. diff --git a/cmd/enable/tests/enable-a-key-already-enabled/stderr.golden b/cmd/enable/tests/enable-a-key-already-enabled/stderr.golden index 7fb3b5b..e1955d6 100644 --- a/cmd/enable/tests/enable-a-key-already-enabled/stderr.golden +++ b/cmd/enable/tests/enable-a-key-already-enabled/stderr.golden @@ -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 diff --git a/cmd/enable/tests/enable-a-key-already-enabled/stdout.golden b/cmd/enable/tests/enable-a-key-already-enabled/stdout.golden index eb68006..cf24473 100644 --- a/cmd/enable/tests/enable-a-key-already-enabled/stdout.golden +++ b/cmd/enable/tests/enable-a-key-already-enabled/stdout.golden @@ -1,2 +1,2 @@ ---- exec command line 0: [enable KEY_B] -Key [KEY_B] was successfully enabled +Key [ KEY_B ] was successfully enabled diff --git a/cmd/enable/tests/enable-a-key/stdout.golden b/cmd/enable/tests/enable-a-key/stdout.golden index eb68006..cf24473 100644 --- a/cmd/enable/tests/enable-a-key/stdout.golden +++ b/cmd/enable/tests/enable-a-key/stdout.golden @@ -1,2 +1,2 @@ ---- exec command line 0: [enable KEY_B] -Key [KEY_B] was successfully enabled +Key [ KEY_B ] was successfully enabled diff --git a/cmd/enable/tests/invalid-key/stderr.golden b/cmd/enable/tests/invalid-key/stderr.golden index fd12d5f..75ec7f6 100644 --- a/cmd/enable/tests/invalid-key/stderr.golden +++ b/cmd/enable/tests/invalid-key/stderr.golden @@ -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. diff --git a/cmd/set/tests/manipulate-empty/stdout.golden b/cmd/set/tests/manipulate-empty/stdout.golden index e84d99d..a4b6ec0 100644 --- a/cmd/set/tests/manipulate-empty/stdout.golden +++ b/cmd/set/tests/manipulate-empty/stdout.golden @@ -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