Commit Graph
2 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
ryenusandMike Farah d0c897f5e6 skip format check for filenames ending with dot
also add a unit test for func FormatStringFromFilename to cover such case
2025-07-15 19:30:07 +10:00