Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Jul 7, 2023
1 parent e5c53b3 commit dc5896b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/elixir_sense/core/metadata_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,17 @@ defmodule ElixirSense.Core.MetadataTest do
assert env.scope == {:x, 1}
end

test "env is correct in module with do:" do
code = """
defmodule A, do: x
"""

metadata = Parser.parse_string(code, true, true, 1)

env = Metadata.get_env(metadata, {1, 19})
assert env.scope == :A
end

test "get_position_to_insert_alias when aliases exist" do
code = """
defmodule MyModule do
Expand Down

0 comments on commit dc5896b

Please sign in to comment.