Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 7376934

Browse files
committed
chore(build): clean up unused test
1 parent 682345f commit 7376934

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

test/groupher_server_web/controller/og_test.exs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -81,35 +81,6 @@ defmodule GroupherServerWeb.Test.Controller.OG do
8181
assert is_nil(image["url"]) == false
8282
end
8383

84-
test "return empty valid structure when url not found" do
85-
conn = build_conn()
86-
87-
url = "https://zhihu.com"
88-
res = get(conn, "/api/og-info", %{url: url})
89-
res = json_response(res, 200)
90-
91-
assert Map.has_key?(res, "success")
92-
assert Map.has_key?(res, "meta")
93-
94-
success = res["success"]
95-
assert success == 1
96-
97-
meta = res["meta"]
98-
assert Map.has_key?(meta, "description")
99-
assert Map.has_key?(meta, "image")
100-
assert Map.has_key?(meta, "title")
101-
102-
title = get_in(res, ["meta", "title"])
103-
assert title == url
104-
105-
description = get_in(res, ["meta", "description"])
106-
assert description == url
107-
108-
image = get_in(res, ["meta", "image"])
109-
assert Map.has_key?(image, "url")
110-
assert image["url"] == nil
111-
end
112-
11384
test "return empty valid structure when title nil but description not nil" do
11485
conn = build_conn()
11586

0 commit comments

Comments
 (0)