Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
NJichev committed Mar 28, 2024
1 parent 89bfff0 commit 19240d1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/next_ls/helpers/ast_helpers_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,18 @@ defmodule NextLS.ASTHelpersTest do

for line <- lines do
position = %Position{line: line, character: 0}
assert {:ok, {:defmodule, _, [{:__aliases__, _, [:Foo]} | _]}} = ASTHelpers.get_surrounding_module(ast, position)

assert {:ok, {:defmodule, _, [{:__aliases__, _, [:Foo]} | _]}} =
ASTHelpers.get_surrounding_module(ast, position)
end

lines = 5..7

for line <- lines do
position = %Position{line: line, character: 0}
assert {:ok, {:defmodule, _, [{:__aliases__, _, [:Bar]} | _]}} = ASTHelpers.get_surrounding_module(ast, position)

assert {:ok, {:defmodule, _, [{:__aliases__, _, [:Bar]} | _]}} =
ASTHelpers.get_surrounding_module(ast, position)
end

position = %Position{line: 0, character: 0}
Expand Down

0 comments on commit 19240d1

Please sign in to comment.