From 4760c5d7e5501b114139f3305b5e4e9d237e942a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Fri, 19 May 2023 01:23:09 +0200 Subject: [PATCH] Add signature test --- test/livebook/intellisense_test.exs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/livebook/intellisense_test.exs b/test/livebook/intellisense_test.exs index bea447ac5..287e65ab4 100644 --- a/test/livebook/intellisense_test.exs +++ b/test/livebook/intellisense_test.exs @@ -1502,6 +1502,9 @@ defmodule Livebook.IntellisenseTest do assert %{active_argument: 2, signature_items: [_item]} = Intellisense.get_signature_items("IO.ANSI.color(1, 2, 3", context) + + assert %{active_argument: 1, signature_items: [_item]} = + Intellisense.get_signature_items("elem(x, 1 + ", context) end test "returns correct active argument when using pipe operator" do