summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api/mastodon_api_controller_test.exs
diff options
context:
space:
mode:
authorLee Starnes <lee@canned-death.us>2018-10-12 00:19:43 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2018-11-01 09:17:02 +0000
commit585b29337ce66eb2c574e71588db542044574609 (patch)
treedcee8b8572d6c6e82d9890b84021fa4a5c816291 /test/web/mastodon_api/mastodon_api_controller_test.exs
parenteba9a62024a6acd4722745850cb7c0ea0502304f (diff)
downloadpleroma-585b29337ce66eb2c574e71588db542044574609.tar.gz
pleroma-585b29337ce66eb2c574e71588db542044574609.zip
Ensure filters have a filter_id
Diffstat (limited to 'test/web/mastodon_api/mastodon_api_controller_test.exs')
-rw-r--r--test/web/mastodon_api/mastodon_api_controller_test.exs2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/web/mastodon_api/mastodon_api_controller_test.exs b/test/web/mastodon_api/mastodon_api_controller_test.exs
index e9deae64d..42a43f129 100644
--- a/test/web/mastodon_api/mastodon_api_controller_test.exs
+++ b/test/web/mastodon_api/mastodon_api_controller_test.exs
@@ -280,6 +280,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIControllerTest do
assert response = json_response(conn, 200)
assert response["phrase"] == filter.phrase
assert response["context"] == filter.context
+ assert response["id"] != nil
+ assert response["id"] != ""
end
test "fetching a list of filters", %{conn: conn} do