Skip to content

Commit 60f02ab

Browse files
jpogranradeksimko
andauthored
Apply suggestions from code review
Co-authored-by: Radek Simko <[email protected]>
1 parent 3f345cd commit 60f02ab

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

decoder/body_extensions_test.go

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ func TestCompletionAtPos_BodySchema_Extensions(t *testing.T) {
3131
"resource": {
3232
Labels: []*schema.LabelSchema{
3333
{
34-
Name: "aws_instance",
34+
Name: "type",
3535
},
3636
{
37-
Name: "foo",
37+
Name: "name",
3838
},
3939
},
4040
Body: &schema.BodySchema{
@@ -85,10 +85,10 @@ func TestCompletionAtPos_BodySchema_Extensions(t *testing.T) {
8585
"resource": {
8686
Labels: []*schema.LabelSchema{
8787
{
88-
Name: "aws_instance",
88+
Name: "type",
8989
},
9090
{
91-
Name: "foo",
91+
Name: "name",
9292
},
9393
},
9494
Body: &schema.BodySchema{
@@ -116,10 +116,10 @@ func TestCompletionAtPos_BodySchema_Extensions(t *testing.T) {
116116
"resource": {
117117
Labels: []*schema.LabelSchema{
118118
{
119-
Name: "aws_instance",
119+
Name: "type",
120120
},
121121
{
122-
Name: "foo",
122+
Name: "name",
123123
},
124124
},
125125
Body: &schema.BodySchema{
@@ -157,10 +157,10 @@ func TestCompletionAtPos_BodySchema_Extensions(t *testing.T) {
157157
"resource": {
158158
Labels: []*schema.LabelSchema{
159159
{
160-
Name: "aws_instance",
160+
Name: "type",
161161
},
162162
{
163-
Name: "foo",
163+
Name: "name",
164164
},
165165
},
166166
Body: &schema.BodySchema{
@@ -210,7 +210,8 @@ func TestCompletionAtPos_BodySchema_Extensions(t *testing.T) {
210210
Column: 13,
211211
Byte: 55,
212212
},
213-
}, NewText: "count.index", Snippet: "count.index"},
213+
},
214+
NewText: "count.index", Snippet: "count.index"},
214215
Kind: lang.TraversalCandidateKind,
215216
},
216217
}),
@@ -222,10 +223,10 @@ func TestCompletionAtPos_BodySchema_Extensions(t *testing.T) {
222223
"resource": {
223224
Labels: []*schema.LabelSchema{
224225
{
225-
Name: "aws_instance",
226+
Name: "type",
226227
},
227228
{
228-
Name: "foo",
229+
Name: "name",
229230
},
230231
},
231232
Body: &schema.BodySchema{
@@ -254,10 +255,10 @@ func TestCompletionAtPos_BodySchema_Extensions(t *testing.T) {
254255
"resource": {
255256
Labels: []*schema.LabelSchema{
256257
{
257-
Name: "aws_instance",
258+
Name: "type",
258259
},
259260
{
260-
Name: "foo",
261+
Name: "name",
261262
},
262263
},
263264
Body: &schema.BodySchema{
@@ -295,10 +296,10 @@ func TestCompletionAtPos_BodySchema_Extensions(t *testing.T) {
295296
"resource": {
296297
Labels: []*schema.LabelSchema{
297298
{
298-
Name: "aws_instance",
299+
Name: "type",
299300
},
300301
{
301-
Name: "foo",
302+
Name: "name",
302303
},
303304
},
304305
Body: &schema.BodySchema{

0 commit comments

Comments
 (0)