mirror of
https://github.com/actions/setup-node.git
synced 2025-06-28 05:33:47 +00:00
test
This commit is contained in:
parent
3b87a69ee1
commit
f44a8c1799
5 changed files with 92 additions and 11 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