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

Commit 4bb042d

Browse files
committed
fix(test): OG: valid structure when url not found
1 parent f4409e2 commit 4bb042d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/groupher_server_web/controller/og_test.exs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ defmodule GroupherServerWeb.Test.Controller.OG do
8787
res = get(conn, "/api/og-info", %{url: url})
8888
res = json_response(res, 200)
8989

90-
# IO.inspect(res, label: "json res")
9190
assert Map.has_key?(res, "success")
9291
assert Map.has_key?(res, "meta")
9392

@@ -103,7 +102,7 @@ defmodule GroupherServerWeb.Test.Controller.OG do
103102
assert title == url
104103

105104
description = get_in(res, ["meta", "description"])
106-
assert description == "--"
105+
assert description == url
107106

108107
image = get_in(res, ["meta", "image"])
109108
assert Map.has_key?(image, "url")

0 commit comments

Comments
 (0)