Skip to content

Commit

Permalink
fix meta whatsapp template tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rasoro committed Feb 3, 2025
1 parent a1cef0c commit ec5f527
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
fail_ci_if_error: false

release:
name: Release
Expand Down
5 changes: 3 additions & 2 deletions handlers/meta/whatsapp/templates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func TestGetTemplatePayload(t *testing.T) {
Name: "Update",
Language: &whatsapp.Language{Policy: "deterministic", Code: "en"},
Components: []*whatsapp.Component{
{Type: "header", Params: []*whatsapp.Param{{Type: "document", Document: &whatsapp.Media{Link: "http://example.com/doc.pdf"}}}},
{Type: "header", Params: []*whatsapp.Param{{Type: "document", Document: &whatsapp.Media{Link: "http://example.com/doc.pdf", Filename: "doc.pdf"}}}},
{Type: "body", Params: []*whatsapp.Param{{Type: "text", Text: "Hello"}, {Type: "text", Text: "Bob"}}},
},
},
Expand Down Expand Up @@ -177,7 +177,8 @@ func TestGetTemplatePayload(t *testing.T) {
Name: "Update",
Language: &whatsapp.Language{Policy: "deterministic", Code: "en"},
Components: []*whatsapp.Component{
{Type: "header", Params: []*whatsapp.Param{{Type: "document", Document: &whatsapp.Media{Link: "http://example.com/doc.pdf"}}}},
{Type: "header", Params: []*whatsapp.Param{{Type: "document", Document: &whatsapp.Media{Link: "http://example.com/doc.pdf", Filename: "doc.pdf"}}}},
{Type: "body", Params: []*whatsapp.Param{{Type: "text", Text: "Hello"}, {Type: "text", Text: "Bob"}}},
},
},
},
Expand Down

0 comments on commit ec5f527

Please sign in to comment.