Skip to content

Commit 051b35a

Browse files
emyllerclaude
andcommitted
style: fix code formatting in tests
- Fix indentation and spacing in User-Agent tests Co-authored-by: Claude Code <noreply@anthropic.com>
1 parent b5abacc commit 051b35a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

test/flagsmith_client_test.exs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,10 @@ defmodule Flagsmith.Client.Test do
441441
describe "User-Agent header" do
442442
test "user_agent/0 returns version from application spec" do
443443
user_agent = Flagsmith.Client.user_agent()
444-
444+
445445
# Should match the format "flagsmith-elixir-sdk/<version>" or "flagsmith-elixir-sdk/unknown"
446446
assert user_agent =~ ~r/^flagsmith-elixir-sdk\/.+$/
447-
447+
448448
# In test environment, it should return the actual version from mix.exs
449449
# or "unknown" if not available
450450
case Application.spec(:flagsmith_engine, :vsn) do
@@ -456,14 +456,15 @@ defmodule Flagsmith.Client.Test do
456456
test "HTTP client includes User-Agent header in requests", %{config: config} do
457457
expect(Tesla.Adapter.Mock, :call, fn tesla_env, _options ->
458458
# Assert that the User-Agent header is present
459-
user_agent_header = Enum.find(tesla_env.headers, fn {header, _} ->
460-
header == "user-agent"
461-
end)
462-
459+
user_agent_header =
460+
Enum.find(tesla_env.headers, fn {header, _} ->
461+
header == "user-agent"
462+
end)
463+
463464
assert user_agent_header != nil, "User-Agent header should be present"
464465
{_header, user_agent_value} = user_agent_header
465466
assert user_agent_value =~ ~r/^flagsmith-elixir-sdk\/.+$/
466-
467+
467468
{:ok, %Tesla.Env{status: 200, body: Test.Generators.map_env()}}
468469
end)
469470

0 commit comments

Comments
 (0)