Skip to content

Commit

Permalink
Remove unnecessary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mbashia committed Nov 15, 2024
1 parent 5c83739 commit a82e965
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions test/phx_tools_web/plugs/curl_detector_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,5 @@ defmodule PhxToolsWeb.CurlDetectorTest do
assert conn.status == 200
assert String.contains?(conn.resp_body, @script_content)
end

test "does not return script content for requests with non-curl User-Agent", %{conn: conn} do
conn =
conn
|> put_req_header("user-agent", "Mozilla/5.0")
|> get("/")

assert conn.status == 200
refute conn.resp_body == @script_content
end
end
end

0 comments on commit a82e965

Please sign in to comment.