From 379228fa50ed1f992926845dedb196752a19c639 Mon Sep 17 00:00:00 2001 From: Jochen Schalanda Date: Thu, 5 Aug 2021 18:43:10 +0200 Subject: [PATCH] Add test for new version suffix "beta" --- __tests__/distributors/base-installer.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/__tests__/distributors/base-installer.test.ts b/__tests__/distributors/base-installer.test.ts index 177c7ace..5408f65c 100644 --- a/__tests__/distributors/base-installer.test.ts +++ b/__tests__/distributors/base-installer.test.ts @@ -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); });