Skip to content

Commit

Permalink
Replace toml with @iarna/toml
Browse files Browse the repository at this point in the history
  • Loading branch information
dariocurr committed Jun 11, 2023
1 parent 5fe4cfd commit 6f8266d
Show file tree
Hide file tree
Showing 6 changed files with 2,343 additions and 53 deletions.
26 changes: 26 additions & 0 deletions .licenses/npm/@iarna/toml.dep.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions __tests__/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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([]);
}
);
});
Loading

0 comments on commit 6f8266d

Please sign in to comment.