Skip to content

Commit

Permalink
Add tests for calls with do-end block
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Oct 26, 2021
1 parent 3cd669d commit 5dc9c2c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/livebook/intellisense_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1465,6 +1465,12 @@ defmodule Livebook.IntellisenseTest do
} = Intellisense.get_signature_items("Enum.concat([1, 2], ", binding, env)
end

test "does not return any signatures when in do-end block" do
{binding, env} = eval(do: nil)

assert nil == Intellisense.get_signature_items("if true do ", binding, env)
end

test "does not return any signatures for module attributes" do
{binding, env} = eval(do: nil)

Expand Down

0 comments on commit 5dc9c2c

Please sign in to comment.