(t *testing.T)
| 40 | } |
| 41 | |
| 42 | func TestSound(t *testing.T) { |
| 43 | payload := NewPayload().Sound("Default.caf") |
| 44 | b, _ := json.Marshal(payload) |
| 45 | assert.Equal(t, `{"aps":{"sound":"Default.caf"}}`, string(b)) |
| 46 | } |
| 47 | |
| 48 | func TestSoundDictionary(t *testing.T) { |
| 49 | payload := NewPayload().Sound(map[string]interface{}{ |
nothing calls this directly
no test coverage detected