Skip to content

Commit c7edb13

Browse files
committed
Update favicon test
1 parent 35763e0 commit c7edb13

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/plausible_web/plugs/favicon_test.exs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ defmodule PlausibleWeb.FaviconTest do
145145
end
146146

147147
describe "Fallback to placeholder icon" do
148-
@placholder_icon File.read!("priv/placeholder_favicon.ico")
148+
@placeholder_icon File.read!("priv/placeholder_favicon.svg")
149149

150150
test "falls back to placeholder when DDG returns a non-2xx response", %{plug_opts: plug_opts} do
151151
expect(
@@ -163,7 +163,7 @@ defmodule PlausibleWeb.FaviconTest do
163163

164164
assert conn.halted
165165
assert conn.status == 200
166-
assert conn.resp_body == @placholder_icon
166+
assert conn.resp_body == @placeholder_icon
167167
end
168168

169169
test "falls back to placeholder in case of a network error", %{plug_opts: plug_opts} do
@@ -181,7 +181,7 @@ defmodule PlausibleWeb.FaviconTest do
181181

182182
assert conn.halted
183183
assert conn.status == 200
184-
assert conn.resp_body == @placholder_icon
184+
assert conn.resp_body == @placeholder_icon
185185
end
186186

187187
test "falls back to placeholder when DDG returns a broken image response", %{
@@ -201,7 +201,7 @@ defmodule PlausibleWeb.FaviconTest do
201201

202202
assert conn.halted
203203
assert conn.status == 200
204-
assert conn.resp_body == @placholder_icon
204+
assert conn.resp_body == @placeholder_icon
205205
end
206206
end
207207
end

0 commit comments

Comments
 (0)