Skip to content

Commit

Permalink
fix: tests & credo
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaAK committed Aug 22, 2024
1 parent b53e356 commit 77682d9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/request_cache_plug_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ defmodule RequestCachePlugTest do
assert resp_headers === [
{"cache-control", "max-age=0, private, must-revalidate"},
{"rc-cache-status", "HIT"},
{"rc-cache-key", "/my_route/html:D41D8CD98F00B204E9800998ECF8427E"},
{"content-type", "application/json; charset=utf-8"}
]
end
Expand Down Expand Up @@ -219,7 +220,8 @@ defmodule RequestCachePlugTest do
assert resp_headers === [
{"cache-control", "max-age=0, private, must-revalidate"},
{"content-type", "text/html; charset=utf-8"},
{"rc-cache-status", "HIT"}
{"rc-cache-status", "HIT"},
{"rc-cache-key", "/my_route/cache:D41D8CD98F00B204E9800998ECF8427E"}
]
end

Expand Down Expand Up @@ -271,7 +273,7 @@ defmodule RequestCachePlugTest do
{"cache-control", "max-age=0, private, must-revalidate"},
{"content-type", "text/html; charset=utf-8"},
{"rc-cache-status", "HIT"},
{"rc-cache-key", "/my_route/cache:D41D8CD98F00B204E9800998ECF8427E"}
{"rc-cache-key", "/error-route/caching-errors-enabled:D41D8CD98F00B204E9800998ECF8427E"}
]
end

Expand Down

0 comments on commit 77682d9

Please sign in to comment.