(t *testing.T)
| 265 | } |
| 266 | |
| 267 | func TestPushTypeAlertHeader(t *testing.T) { |
| 268 | n := mockNotification() |
| 269 | n.PushType = apns.PushTypeAlert |
| 270 | server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| 271 | assert.Equal(t, "alert", r.Header.Get("apns-push-type")) |
| 272 | })) |
| 273 | defer server.Close() |
| 274 | _, err := mockClient(server.URL).Push(n) |
| 275 | assert.NoError(t, err) |
| 276 | } |
| 277 | |
| 278 | func TestPushTypeBackgroundHeader(t *testing.T) { |
| 279 | n := mockNotification() |
nothing calls this directly
no test coverage detected