Skip to content

Commit

Permalink
feat: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobernardoaf committed Nov 22, 2024
1 parent 9b0ba51 commit da9f871
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions flows/actions/testdata/send_broadcast.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"events": [
{
"type": "broadcast_created",
"broadcast_type": "D",
"created_on": "2018-10-18T14:20:30.000123456Z",
"step_uuid": "59d74b86-3e2f-4a93-aece-b05d2fdcde0c",
"translations": {
Expand Down Expand Up @@ -168,6 +169,7 @@
},
{
"type": "broadcast_created",
"broadcast_type": "D",
"created_on": "2018-10-18T14:20:30.000123456Z",
"step_uuid": "59d74b86-3e2f-4a93-aece-b05d2fdcde0c",
"translations": {
Expand Down Expand Up @@ -269,6 +271,7 @@
"events": [
{
"type": "broadcast_created",
"broadcast_type": "D",
"created_on": "2018-10-18T14:20:30.000123456Z",
"step_uuid": "59d74b86-3e2f-4a93-aece-b05d2fdcde0c",
"translations": {
Expand Down
1 change: 1 addition & 0 deletions flows/events/base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func TestEventMarshaling(t *testing.T) {
),
`{
"base_language": "eng",
"broadcast_type": "D",
"contacts": [
{
"name": "Jim",
Expand Down
2 changes: 1 addition & 1 deletion flows/events/broadcast_created.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type BroadcastCreatedEvent struct {
Groups []*assets.GroupReference `json:"groups,omitempty" validate:"dive"`
Contacts []*flows.ContactReference `json:"contacts,omitempty" validate:"dive"`
URNs []urns.URN `json:"urns,omitempty" validate:"dive,urn"`
BroadcastType BroadcastType `json:"broadcast_type"`
BroadcastType BroadcastType `json:"broadcast_type,omitempty"`
}

// NewBroadcastCreated creates a new outgoing msg event for the given recipients
Expand Down
4 changes: 4 additions & 0 deletions test/testdata/runner/all_actions.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
},
{
"base_language": "eng",
"broadcast_type": "D",
"created_on": "2018-07-06T12:30:21.123456789Z",
"step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094",
"translations": {
Expand All @@ -189,6 +190,7 @@
},
{
"base_language": "eng",
"broadcast_type": "D",
"created_on": "2018-07-06T12:30:23.123456789Z",
"groups": [
{
Expand Down Expand Up @@ -646,6 +648,7 @@
},
{
"base_language": "eng",
"broadcast_type": "D",
"created_on": "2018-07-06T12:30:21.123456789Z",
"step_uuid": "8720f157-ca1c-432f-9c0b-2014ddc77094",
"translations": {
Expand All @@ -663,6 +666,7 @@
},
{
"base_language": "eng",
"broadcast_type": "D",
"created_on": "2018-07-06T12:30:23.123456789Z",
"groups": [
{
Expand Down

0 comments on commit da9f871

Please sign in to comment.