Skip to content

Commit b6e30b0

Browse files
One more layer in test
1 parent 8ab5fa1 commit b6e30b0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

pkg/server/completion_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ func TestCompletion(t *testing.T) {
568568
},
569569
{
570570
name: "autocomplete fix doubled index bug",
571-
filename: "testdata/doubled-index-bug-3.jsonnet",
571+
filename: "testdata/doubled-index-bug-4.jsonnet",
572572
replaceString: "a: g.hello",
573573
replaceByString: "a: g.hello.",
574574
expected: protocol.CompletionList{
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
local g = import 'doubled-index-bug-2.jsonnet';
2-
{
3-
// completing fields of `g.hello` should get use `g.hello.to`, not `g.hello.hello`
4-
a: g.hello,
5-
}
1+
import 'doubled-index-bug-2.jsonnet'
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
local g = import 'doubled-index-bug-3.jsonnet';
2+
{
3+
// completing fields of `g.hello` should get use `g.hello.to`, not `g.hello.hello`
4+
a: g.hello,
5+
}

0 commit comments

Comments
 (0)