fix(test): update expected format for unrecognised extension to yaml (#2837)

When unrecognised extensions are passed, FormatStringFromFilename defaults to 'yaml' (as handled in pkg/yqlib/format.go and tested in pkg/yqlib/format_test.go).

This updates the test expectation in test/format_test.go for 'file.unknown' to 'yaml' so that go test ./test passes.
This commit is contained in:
Siddharth
2026-08-25 20:19:22 +10:00
committed by GitHub
parent c14f446382
commit 8b5af0694b
+1 -1
View File
@@ -17,7 +17,7 @@ func TestFormatStringFromFilename(t *testing.T) {
{"FILE.JSON", "json"},
{"file.properties", "properties"},
{"file.xml", "xml"},
{"file.unknown", "unknown"},
{"file.unknown", "yaml"},
// filenames without extensions
{"file", "yaml"},