(t *testing.T)
| 50 | } |
| 51 | |
| 52 | func TestDeleteUser(t *testing.T) { |
| 53 | u := test.CreateUser() |
| 54 | cmd := test.GetRootCmdWithSubCommands(NewCmds()...) |
| 55 | cmd.SetArgs([]string{"delete-user", "-u", u, "--hard-delete", "--mark-messages-deleted", "--delete-conversations"}) |
| 56 | _, err := cmd.ExecuteC() |
| 57 | require.NoError(t, err) |
| 58 | require.Contains(t, cmd.OutOrStdout().(*bytes.Buffer).String(), "Successfully initiated user deletion") |
| 59 | } |
| 60 | |
| 61 | func TestDeleteMultipleUsers(t *testing.T) { |
| 62 | cmd := test.GetRootCmdWithSubCommands(NewCmds()...) |
nothing calls this directly
no test coverage detected