fix(test): update ingestion-utils test for Kotlin support

Move .kt from unsupported list to supported, add Kotlin test case
for .kt and .kts extensions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
abhigyanpatwari 2026-03-01 23:18:21 +05:30
parent 40cb863cb4
commit 3431edcea0

View file

@ -91,8 +91,17 @@ describe('getLanguageFromFilename', () => {
});
});
describe('Kotlin', () => {
it.each(['.kt', '.kts'])(
'detects %s files',
(ext) => {
expect(getLanguageFromFilename(`file${ext}`)).toBe(SupportedLanguages.Kotlin);
}
);
});
describe('unsupported', () => {
it.each(['.rb', '.kt', '.scala', '.r', '.lua', '.zig', '.txt', '.md', '.json', '.yaml'])(
it.each(['.rb', '.scala', '.r', '.lua', '.zig', '.txt', '.md', '.json', '.yaml'])(
'returns null for %s files',
(ext) => {
expect(getLanguageFromFilename(`file${ext}`)).toBeNull();