(t *testing.T)
| 95 | } |
| 96 | |
| 97 | func TestPushover_Invalid(t *testing.T) { |
| 98 | ctx := testlogging.Context(t) |
| 99 | |
| 100 | _, err := sender.GetSender(ctx, "my-profile", "pushover", &pushover.Options{}) |
| 101 | require.ErrorContains(t, err, "App Token must be provided") |
| 102 | |
| 103 | _, err = sender.GetSender(ctx, "my-profile", "pushover", &pushover.Options{ |
| 104 | AppToken: "some-token", |
| 105 | }) |
| 106 | require.ErrorContains(t, err, "User Key must be provided") |
| 107 | } |
| 108 | |
| 109 | func TestMergeOptions(t *testing.T) { |
| 110 | var dst pushover.Options |