(t *testing.T)
| 46 | } |
| 47 | |
| 48 | func TestSoundDictionary(t *testing.T) { |
| 49 | payload := NewPayload().Sound(map[string]interface{}{ |
| 50 | "critical": 1, |
| 51 | "name": "default", |
| 52 | "volume": 0.8, |
| 53 | }) |
| 54 | b, _ := json.Marshal(payload) |
| 55 | assert.Equal(t, `{"aps":{"sound":{"critical":1,"name":"default","volume":0.8}}}`, string(b)) |
| 56 | } |
| 57 | |
| 58 | func TestContentAvailable(t *testing.T) { |
| 59 | payload := NewPayload().ContentAvailable() |
nothing calls this directly
no test coverage detected