Compare commits

..
1 Commits
Author SHA1 Message Date
SiddharthandGitHub 8b5af0694b 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.
2026-08-25 20:19:22 +10:00
+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"},