Skip to content

Commit

Permalink
add TTS expects
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulJKim committed Jun 18, 2024
1 parent 71f2846 commit 7c505b6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/signs/realtime_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ defmodule Signs.RealtimeTest do
tick_read: 1,
read_period_seconds: 100,
pa_message_plays: %{}
read_period_seconds: 100,
pa_message_plays: %{}
}

@mezzanine_sign %{
Expand Down Expand Up @@ -1793,7 +1791,9 @@ defmodule Signs.RealtimeTest do
end

test "Plays message if no prior plays" do
expect_audios([{:ad_hoc, {"A PA Message", :audio_visual}}])
expect_audios([{:ad_hoc, {"A PA Message", :audio_visual}}], [
{"A PA Message", [{"A PA Message", "", 3}]}
])

pa_message = %PaMessages.PaMessage{
id: 1,
Expand All @@ -1805,7 +1805,9 @@ defmodule Signs.RealtimeTest do
end

test "Plays message if interval has passed" do
expect_audios([{:ad_hoc, {"A PA Message", :audio_visual}}])
expect_audios([{:ad_hoc, {"A PA Message", :audio_visual}}], [
{"A PA Message", [{"A PA Message", "", 3}]}
])

pa_message = %PaMessages.PaMessage{
id: 1,
Expand Down

0 comments on commit 7c505b6

Please sign in to comment.