projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix all tests
[akkoma]
/
test
/
pleroma
/
web
/
common_api
/
utils_test.exs
diff --git
a/test/pleroma/web/common_api/utils_test.exs
b/test/pleroma/web/common_api/utils_test.exs
index fc01f820acd50fc1a3ae32cb379830b20a3a7585..c4f506fe35ea9f176321579464b239820f9a796e 100644
(file)
--- a/
test/pleroma/web/common_api/utils_test.exs
+++ b/
test/pleroma/web/common_api/utils_test.exs
@@
-309,7
+309,7
@@
defmodule Pleroma.Web.CommonAPI.UtilsTest do
assert capture_log(fn ->
assert Utils.date_to_asctime(date) == expected
assert capture_log(fn ->
assert Utils.date_to_asctime(date) == expected
- end) =~ "[warn] Date #{date} in wrong format, must be ISO 8601"
+ end) =~ "[warn
ing
] Date #{date} in wrong format, must be ISO 8601"
end
test "when date is a Unix timestamp" do
end
test "when date is a Unix timestamp" do
@@
-319,7
+319,7
@@
defmodule Pleroma.Web.CommonAPI.UtilsTest do
assert capture_log(fn ->
assert Utils.date_to_asctime(date) == expected
assert capture_log(fn ->
assert Utils.date_to_asctime(date) == expected
- end) =~ "[warn] Date #{date} in wrong format, must be ISO 8601"
+ end) =~ "[warn
ing
] Date #{date} in wrong format, must be ISO 8601"
end
test "when date is nil" do
end
test "when date is nil" do
@@
-327,13
+327,13
@@
defmodule Pleroma.Web.CommonAPI.UtilsTest do
assert capture_log(fn ->
assert Utils.date_to_asctime(nil) == expected
assert capture_log(fn ->
assert Utils.date_to_asctime(nil) == expected
- end) =~ "[warn] Date in wrong format, must be ISO 8601"
+ end) =~ "[warn
ing
] Date in wrong format, must be ISO 8601"
end
test "when date is a random string" do
assert capture_log(fn ->
assert Utils.date_to_asctime("foo") == ""
end
test "when date is a random string" do
assert capture_log(fn ->
assert Utils.date_to_asctime("foo") == ""
- end) =~ "[warn] Date foo in wrong format, must be ISO 8601"
+ end) =~ "[warn
ing
] Date foo in wrong format, must be ISO 8601"
end
end
end
end