mirror of
https://github.com/actions/setup-node.git
synced 2025-07-01 07:03:47 +00:00
This commit is contained in:
parent
5ef044f9d0
commit
761ed2f64f
3 changed files with 33 additions and 4 deletions
|
@ -101,6 +101,7 @@ describe('main tests', () => {
|
|||
${' 14.1.0 '} | ${'14.1.0'}
|
||||
${'{"volta": {"node": ">=14.0.0 <=17.0.0"}}'}| ${'>=14.0.0 <=17.0.0'}
|
||||
${'{"engines": {"node": "17.0.0"}}'} | ${'17.0.0'}
|
||||
${'{}'} | ${null}
|
||||
`.it('parses "$contents"', ({contents, expected}) => {
|
||||
expect(util.parseNodeVersionFile(contents)).toBe(expected);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue