X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=cmd%2Fsafcm%2Fsync_changes_test.go;h=febb7847edf600e43541294a81d8cd96864deaa5;hb=17e43bcada25c22f459827851faa34f8f4df3d33;hp=6c7ba392aac7b36b01399eb7e1d8c6fba4af9b8c;hpb=9a448e1f88dbc2b0857bd984089c99905c092633;p=safcm%2Fsafcm.git diff --git a/cmd/safcm/sync_changes_test.go b/cmd/safcm/sync_changes_test.go index 6c7ba39..febb784 100644 --- a/cmd/safcm/sync_changes_test.go +++ b/cmd/safcm/sync_changes_test.go @@ -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", }, {