Skip to content

Commit

Permalink
One more layer in test
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduchesne committed Aug 31, 2023
1 parent 8ab5fa1 commit b6e30b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/server/completion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ func TestCompletion(t *testing.T) {
},
{
name: "autocomplete fix doubled index bug",
filename: "testdata/doubled-index-bug-3.jsonnet",
filename: "testdata/doubled-index-bug-4.jsonnet",
replaceString: "a: g.hello",
replaceByString: "a: g.hello.",
expected: protocol.CompletionList{
Expand Down
6 changes: 1 addition & 5 deletions pkg/server/testdata/doubled-index-bug-3.jsonnet
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
local g = import 'doubled-index-bug-2.jsonnet';
{
// completing fields of `g.hello` should get use `g.hello.to`, not `g.hello.hello`
a: g.hello,
}
import 'doubled-index-bug-2.jsonnet'
5 changes: 5 additions & 0 deletions pkg/server/testdata/doubled-index-bug-4.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
local g = import 'doubled-index-bug-3.jsonnet';
{
// completing fields of `g.hello` should get use `g.hello.to`, not `g.hello.hello`
a: g.hello,
}

0 comments on commit b6e30b0

Please sign in to comment.