added additional check on error message in negative test case

packer_fmt_multi_args
anshul sharma 10 months ago
parent 2a32343e07
commit 98dfe65fd4

@ -134,5 +134,9 @@ func TestHCL2Formatter_FormatNegativeCases(t *testing.T) {
if tc.errExpected && !diags.HasErrors() {
t.Fatalf("Expected error but got none")
}
if diags[0].Detail != "file testdata/format/test.json is not a HCL file" {
t.Fatalf("Expected error messge did not received")
}
}
}

Loading…
Cancel
Save