Skip to content

Commit

Permalink
fixup! feat: undefined function code action
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Apr 25, 2024
1 parent 7dbd090 commit 4f47247
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ defmodule NextLS.ElixirExtension.UndefinedFunctionTest do

uri = "file:///home/owner/my_project/hello.ex"

assert [code_action] = UndefinedFunction.new(diagnostic, text, uri)
assert [_, code_action] = UndefinedFunction.new(diagnostic, text, uri)
assert %CodeAction{} = code_action
assert [diagnostic] == code_action.diagnostics
assert code_action.title == "Create local private function bar/2"
assert code_action.title == "Create private function bar/2"

edit_position = %Position{line: 5, character: 0}

Expand Down

0 comments on commit 4f47247

Please sign in to comment.