mirror of
https://github.com/mikefarah/yq.git
synced 2026-08-30 20:35:13 +08:00
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:
+1
-1
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user