X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/855a45e6448537c3eed1ad6ec7f1ca9d6caf91fc..refs/heads/master:/command_test.go?ds=sidebyside diff --git a/command_test.go b/command_test.go index 3d89327..602424d 100644 --- a/command_test.go +++ b/command_test.go @@ -22,6 +22,12 @@ func TestHelpListsVersionCommand(t *testing.T) { require.Contains(t, commandOutput(t, "help"), " version show the build version\n") } +func TestHelpListsTheImportTargetFlag(t *testing.T) { + help := commandOutput(t, "help") + require.Contains(t, help, "import [-n] [--agent NAME] ZIP...") + require.Contains(t, help, "--agent NAME import into an existing direct child (default: root)") +} + func commandOutput(t *testing.T, args ...string) string { t.Helper()