Skip to content

Commit cdc9e96

Browse files
committed
test: update error message in tests
1 parent 9641846 commit cdc9e96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/terraform_json_syntax_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func Test_TerraformJSONSyntaxRule(t *testing.T) {
3333
expected: helper.Issues{
3434
{
3535
Rule: NewTerraformJSONSyntaxRule(),
36-
Message: "JSON configuration uses array syntax at root. The official Terraform JSON syntax uses a root object. See https://developer.hashicorp.com/terraform/language/syntax/json",
36+
Message: "JSON configuration uses array syntax at root, expected object",
3737
Range: hcl.Range{
3838
Filename: "main.tf.json",
3939
Start: hcl.Pos{Line: 1, Column: 1},
@@ -75,7 +75,7 @@ func Test_TerraformJSONSyntaxRule(t *testing.T) {
7575
expected: helper.Issues{
7676
{
7777
Rule: NewTerraformJSONSyntaxRule(),
78-
Message: "JSON configuration uses array syntax at root. The official Terraform JSON syntax uses a root object. See https://developer.hashicorp.com/terraform/language/syntax/json",
78+
Message: "JSON configuration uses array syntax at root, expected object",
7979
Range: hcl.Range{
8080
Filename: "config.tf.json",
8181
Start: hcl.Pos{Line: 1, Column: 1},

0 commit comments

Comments
 (0)