mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-08-28 05:25:25 +00:00
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:
parent
40cb863cb4
commit
3431edcea0
1 changed files with 10 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue