mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
Fix lint
This commit is contained in:
parent
e73db4617c
commit
795bdd5e6c
1 changed files with 2 additions and 1 deletions
|
@ -123,7 +123,8 @@ describe('Version from file test', () => {
|
||||||
await io.mkdirP(tempDir);
|
await io.mkdirP(tempDir);
|
||||||
const pythonVersionFileName = 'python-version.file';
|
const pythonVersionFileName = 'python-version.file';
|
||||||
const pythonVersionFilePath = path.join(tempDir, pythonVersionFileName);
|
const pythonVersionFilePath = path.join(tempDir, pythonVersionFileName);
|
||||||
const pythonVersionFileContent = '3.10/envs/virtualenv\r# 3.9\n3.8\r\n3.7\r\n 3.6 \r\n';
|
const pythonVersionFileContent =
|
||||||
|
'3.10/envs/virtualenv\r# 3.9\n3.8\r\n3.7\r\n 3.6 \r\n';
|
||||||
fs.writeFileSync(pythonVersionFilePath, pythonVersionFileContent);
|
fs.writeFileSync(pythonVersionFilePath, pythonVersionFileContent);
|
||||||
expect(_fn(pythonVersionFilePath)).toEqual(['3.10', '3.8', '3.7', '3.6']);
|
expect(_fn(pythonVersionFilePath)).toEqual(['3.10', '3.8', '3.7', '3.6']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue