@@ -22,6 +22,14 @@ defmodule NextLS.CompletionsTest do
2222 end
2323 """ )
2424
25+ bar = Path . join ( cwd , "my_proj/lib/bar.ex" )
26+
27+ File . write! ( bar , """
28+ defmodule Bar do
29+ defstruct [:one, :two, :three]
30+ end
31+ """ )
32+
2533 [ foo: foo , cwd: cwd ]
2634 end
2735
@@ -185,7 +193,7 @@ defmodule NextLS.CompletionsTest do
185193 text: """
186194 defmodule Foo do
187195 def run() do
188- IO.inspect([%URI {])
196+ IO.inspect([%Bar {])
189197 :ok
190198 end
191199 end
@@ -210,14 +218,9 @@ defmodule NextLS.CompletionsTest do
210218 }
211219
212220 assert_result 2 , [
213- % { "data" => nil , "documentation" => "" , "insertText" => "port" , "kind" => 5 , "label" => "port" } ,
214- % { "data" => nil , "documentation" => "" , "insertText" => "scheme" , "kind" => 5 , "label" => "scheme" } ,
215- % { "data" => nil , "documentation" => "" , "insertText" => "path" , "kind" => 5 , "label" => "path" } ,
216- % { "data" => nil , "documentation" => "" , "insertText" => "host" , "kind" => 5 , "label" => "host" } ,
217- % { "data" => nil , "documentation" => "" , "insertText" => "userinfo" , "kind" => 5 , "label" => "userinfo" } ,
218- % { "data" => nil , "documentation" => "" , "insertText" => "fragment" , "kind" => 5 , "label" => "fragment" } ,
219- % { "data" => nil , "documentation" => "" , "insertText" => "query" , "kind" => 5 , "label" => "query" } ,
220- % { "data" => nil , "documentation" => "" , "insertText" => "authority" , "kind" => 5 , "label" => "authority" }
221+ % { "data" => nil , "documentation" => "" , "insertText" => "one" , "kind" => 5 , "label" => "one" } ,
222+ % { "data" => nil , "documentation" => "" , "insertText" => "two" , "kind" => 5 , "label" => "two" } ,
223+ % { "data" => nil , "documentation" => "" , "insertText" => "three" , "kind" => 5 , "label" => "three" }
221224 ]
222225 end
223226
0 commit comments