NullVoxPopuli 2023-10-04 16:12:51 -04:00
parent 5ef044f9d0
commit 761ed2f64f
No known key found for this signature in database
GPG key ID: 8A06F31B53641471
3 changed files with 33 additions and 4 deletions

View file

@ -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);
});