This commit is contained in:
Jorge Rodriguez 2025-06-20 22:58:59 +01:00 committed by GitHub
commit 76ac4abd3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 70 additions and 4 deletions

View file

@ -244,6 +244,18 @@ describe('Version from file test', () => {
expect(_fn(toolVersionFilePath)).toEqual(['3.14t-dev']);
}
);
it.each([getVersionInputFromTomlFile, getVersionInputFromFile])(
'Version from mise.toml',
async _fn => {
await io.mkdirP(tempDir);
const filePath = path.join(tempDir, 'mise.toml');
const pythonVersion = '3.8.0';
const fileContent = `[tools]\npython = "${pythonVersion}"`;
fs.writeFileSync(filePath, fileContent);
expect(_fn(filePath)).toEqual([pythonVersion]);
}
);
});
describe('getNextPageUrl', () => {