Add test for new version suffix "beta"

This commit is contained in:
Jochen Schalanda 2021-08-05 18:43:10 +02:00
parent 962968b055
commit 379228fa50

View File

@ -312,7 +312,9 @@ describe('normalizeVersion', () => {
['11.0', { version: '11.0', stable: true }],
['11.0.10', { version: '11.0.10', stable: true }],
['11-ea', { version: '11', stable: false }],
['11.0.2-ea', { version: '11.0.2', stable: false }]
['11.0.2-ea', { version: '11.0.2', stable: false }],
['17.0.0-beta', { version: '17.0.0', stable: false }],
['17.0.0-beta+33.0', { version: '17.0.0+33.0', stable: false }]
])('normalizeVersion from %s to %s', (input, expected) => {
expect(DummyJavaBase.prototype.normalizeVersion.call(null, input)).toEqual(expected);
});