Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit Vermeulen committed Oct 28, 2024
1 parent d857b77 commit f45515f
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions Push messaging/QA/tests/send_next_message_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,15 @@ defmodule SendNextMessageTest do
leaf_page5,
leaf_page6,
leaf_page7,
leaf_page8,
leaf_page8
])

assert :ok =
FakeCMS.add_ordered_content_sets(wh_pid, [
ocs1,
ocs2,
ocs3,
ocs4,
ocs4
])

# Return the adapter.
Expand All @@ -254,7 +254,11 @@ defmodule SendNextMessageTest do

defp setup_contact_fields(context) do
context
|> FlowTester.set_contact_properties(%{"gender" => "", "year_of_birth" => "1988", "relationship_status" => ""})
|> FlowTester.set_contact_properties(%{
"gender" => "",
"year_of_birth" => "1988",
"relationship_status" => ""
})
end

defp setup_flow() do
Expand Down Expand Up @@ -305,7 +309,10 @@ defmodule SendNextMessageTest do

setup_flow()
|> FlowTester.set_fake_time(future_fake_time)
|> FlowTester.set_contact_properties(%{"push_messaging_signup" => string_fake_time, "relationship_status" => "in a relationship"})
|> FlowTester.set_contact_properties(%{
"push_messaging_signup" => string_fake_time,
"relationship_status" => "in a relationship"
})
|> FlowTester.start()
|> receive_message(%{
text: "Leaf Page 6\n\nTest leaf content page 6\n"
Expand All @@ -321,7 +328,10 @@ defmodule SendNextMessageTest do

setup_flow()
|> FlowTester.set_fake_time(future_fake_time)
|> FlowTester.set_contact_properties(%{"year_of_birth" => "2010", "push_messaging_signup" => string_fake_time})
|> FlowTester.set_contact_properties(%{
"year_of_birth" => "2010",
"push_messaging_signup" => string_fake_time
})
|> FlowTester.start()
|> receive_message(%{
text: "Leaf Page 2\n\nTest leaf content page 2\n"
Expand All @@ -337,7 +347,10 @@ defmodule SendNextMessageTest do

setup_flow()
|> FlowTester.set_fake_time(future_fake_time)
|> FlowTester.set_contact_properties(%{"gender" => "male", "push_messaging_signup" => string_fake_time})
|> FlowTester.set_contact_properties(%{
"gender" => "male",
"push_messaging_signup" => string_fake_time
})
|> FlowTester.start()
|> receive_message(%{
text: "Leaf Page 8\n\nTest leaf content page 8\n"
Expand Down

0 comments on commit f45515f

Please sign in to comment.