Replace toml with @iarna/toml

This commit is contained in:
Dario Curreri 2023-06-11 09:45:47 +02:00
parent 5fe4cfd090
commit 6f8266d242
No known key found for this signature in database
6 changed files with 2345 additions and 55 deletions

View file

@ -125,4 +125,14 @@ describe('Version from file test', () => {
expect(_fn(pythonVersionFilePath)).toEqual([pythonVersion]);
}
);
it.each([getVersionInputFromTomlFile, getVersionInputFromFile])(
'Version undefined',
async _fn => {
await io.mkdirP(tempDir);
const pythonVersionFileName = 'pyproject.toml';
const pythonVersionFilePath = path.join(tempDir, pythonVersionFileName);
fs.writeFileSync(pythonVersionFilePath, ``);
expect(_fn(pythonVersionFilePath)).toEqual([]);
}
);
});