From 082435129e88f6855bd7305e49fad7f4acae406c Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 27 Oct 2022 16:08:15 +0200 Subject: [PATCH] Fix tests after CLDR upgrade Signed-off-by: Thomas Citharel --- test/service/date_time/date_time_test.exs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/service/date_time/date_time_test.exs b/test/service/date_time/date_time_test.exs index 9a82e829..0a84724d 100644 --- a/test/service/date_time/date_time_test.exs +++ b/test/service/date_time/date_time_test.exs @@ -10,31 +10,31 @@ defmodule Mobilizon.Service.DateTimeTest do describe "render a datetime to string" do test "standard datetime" do {:ok, datetime, _} = DateTime.from_iso8601(@datetime) - assert DateTimeTools.datetime_to_string(datetime) == "Jun 22, 2021, 3:25:29 PM" + assert DateTimeTools.datetime_to_string(datetime) == "Jun 22, 2021, 3:25:29 PM" assert DateTimeTools.datetime_to_string(datetime, "fr") == "22 juin 2021, 15:25:29" assert DateTimeTools.datetime_to_string(datetime, "fr", :long) == - "22 juin 2021 à 15:25:29 UTC" + "22 juin 2021, 15:25:29 UTC" end test "non existing or loaded locale fallbacks to english" do {:ok, datetime, _} = DateTime.from_iso8601(@datetime) - assert DateTimeTools.datetime_to_string(datetime, "es") == "Jun 22, 2021, 3:25:29 PM" + assert DateTimeTools.datetime_to_string(datetime, "es") == "Jun 22, 2021, 3:25:29 PM" end end describe "render a time to string" do test "standard time" do {:ok, datetime, _} = DateTime.from_iso8601(@datetime) - assert DateTimeTools.datetime_to_time_string(datetime) == "3:25 PM" + assert DateTimeTools.datetime_to_time_string(datetime) == "3:25 PM" assert DateTimeTools.datetime_to_time_string(datetime, "fr") == "15:25" end test "non existing or loaded locale fallbacks to english" do {:ok, datetime, _} = DateTime.from_iso8601(@datetime) - assert DateTimeTools.datetime_to_time_string(datetime, "pl") == "3:25 PM" + assert DateTimeTools.datetime_to_time_string(datetime, "pl") == "3:25 PM" end end