Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziinc committed Nov 22, 2024
1 parent 72acc0b commit 30c471c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ defmodule LogflareWeb.Api.SourceControllerTest do
end

describe "transformations" do

end

describe "retention_days" do
Expand Down
13 changes: 7 additions & 6 deletions test/logflare_web/controllers/source_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ defmodule LogflareWeb.SourceControllerTest do
end
end


describe "edit" do
setup %{conn: conn} do
insert(:plan, name: "Free")
Expand All @@ -203,6 +202,7 @@ defmodule LogflareWeb.SourceControllerTest do

test "pipeline", %{conn: conn, free_user: user} do
source = insert(:source, user: user)

html =
conn
|> login_user(user)
Expand All @@ -213,16 +213,17 @@ defmodule LogflareWeb.SourceControllerTest do
assert html =~ "Copy fields"
assert html =~ "Update field copying rules"


conn =
conn
|> recycle()
|> login_user(user)
|> patch("/sources/#{source.id}", %{
source: %{transform_copy_fields: """
test:123
123:1234
"""}
source: %{
transform_copy_fields: """
test:123
123:1234
"""
}
})

assert html_response(conn, 302) =~ "redirected"
Expand Down

0 comments on commit 30c471c

Please sign in to comment.