diff --git a/command/fmt_test.go b/command/fmt_test.go index e7011dba9..b63ca5fb9 100644 --- a/command/fmt_test.go +++ b/command/fmt_test.go @@ -86,6 +86,7 @@ func TestFmt_Recursive(t *testing.T) { "potato": unformattedHCL, "foo/bar/potato": unformattedHCL, "bar.pkr.hcl": unformattedHCL, + "-": unformattedHCL, }, fileCheck: fileCheck{ expectedContent: map[string]string{ @@ -94,6 +95,7 @@ func TestFmt_Recursive(t *testing.T) { "potato": unformattedHCL, "foo/bar/potato": unformattedHCL, "bar.pkr.hcl": formattedHCL, + "-": unformattedHCL, }}, }, { @@ -103,12 +105,14 @@ func TestFmt_Recursive(t *testing.T) { "foo/bar/baz.pkr.hcl": unformattedHCL, "foo/bar/baz/woo.pkrvars.hcl": unformattedHCL, "bar.pkr.hcl": unformattedHCL, + "-": unformattedHCL, }, fileCheck: fileCheck{ expectedContent: map[string]string{ "foo/bar/baz.pkr.hcl": unformattedHCL, "foo/bar/baz/woo.pkrvars.hcl": unformattedHCL, "bar.pkr.hcl": formattedHCL, + "-": unformattedHCL, }}, }, }