(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestEmptyPayload(t *testing.T) { |
| 13 | payload := NewPayload() |
| 14 | b, _ := json.Marshal(payload) |
| 15 | assert.Equal(t, `{"aps":{}}`, string(b)) |
| 16 | } |
| 17 | |
| 18 | func TestAlert(t *testing.T) { |
| 19 | payload := NewPayload().Alert("hello") |
nothing calls this directly
no test coverage detected