Skip to content

Commit

Permalink
Remove news stand
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshow committed Mar 1, 2016
1 parent 05be951 commit 747a85b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
7 changes: 0 additions & 7 deletions payload/builder.go
Expand Up @@ -88,13 +88,6 @@ func (p *payload) ContentAvailable() *payload {
return p
}

// Sets the aps content-available on the payload to 1.
// This is an alias for ContentAvailable().
// {"aps":{"content-available":1}}
func (p *payload) NewsstandAvailable() *payload {
return p.ContentAvailable()
}

// Custom payload

// Sets a custom key and value on the payload.
Expand Down
6 changes: 0 additions & 6 deletions payload/builder_test.go
Expand Up @@ -50,12 +50,6 @@ func TestContentAvailable(t *testing.T) {
assert.Equal(t, `{"aps":{"content-available":1}}`, string(b))
}

func TestNewsstandAvailable(t *testing.T) {
payload := NewPayload().NewsstandAvailable()
b, _ := json.Marshal(payload)
assert.Equal(t, `{"aps":{"content-available":1}}`, string(b))
}

func TestCustom(t *testing.T) {
payload := NewPayload().Custom("key", "val")
b, _ := json.Marshal(payload)
Expand Down

0 comments on commit 747a85b

Please sign in to comment.