]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - cmd/safcm/sync_changes_test.go
changes: tests: remove output for dry-run commands
[safcm/safcm.git] / cmd / safcm / sync_changes_test.go
index 6c7ba392aac7b36b01399eb7e1d8c6fba4af9b8c..febb7847edf600e43541294a81d8cd96864deaa5 100644 (file)
@@ -43,7 +43,7 @@ func TestFormatChanges(t *testing.T) {
                        false,
                        false,
                        safcm.MsgSyncResp{},
-                       "",
+                       "no changes",
                },
 
                {
@@ -1036,13 +1036,10 @@ func TestFormatCommandChanges(t *testing.T) {
                        []safcm.CommandChange{
                                {
                                        Command: "fake command",
-                                       Output:  "fake output",
                                },
                        },
                        `executed 1 command(s): (dry-run)
-"fake command":
-   > fake output
-   > \ No newline at end of file
+"fake command"
 `,
                },
 
@@ -1054,10 +1051,9 @@ func TestFormatCommandChanges(t *testing.T) {
                        []safcm.CommandChange{
                                {
                                        Command: "fake command",
-                                       Output:  "fake output",
                                },
                        },
-                       "executed 1 command(s): (dry-run)\n\x1b[36m\"fake command\"\x1b[0m:\n   > fake output\n   > \\ No newline at end of file\n",
+                       "executed 1 command(s): (dry-run)\n\x1b[36m\"fake command\"\x1b[0m\n",
                },
 
                {