update version check tests

This commit is contained in:
proddy
2025-03-28 17:20:25 +01:00
parent c927e5f496
commit 9398fc72a0

View File

@@ -118,7 +118,7 @@ let VERSION_IS_UPGRADEABLE: boolean;
// default - on latest stable, no stable upgrades // default - on latest stable, no stable upgrades
let THIS_VERSION = '3.7.2'; let THIS_VERSION = '3.7.2';
let LATEST_STABLE_VERSION = '3.7.2'; let LATEST_STABLE_VERSION = '3.7.2';
let LATEST_DEV_VERSION = '3.7.3-dev.9'; let LATEST_DEV_VERSION = '3.7.3-dev.3';
// scenarios for testing versioning // scenarios for testing versioning
let version_test = 0; let version_test = 0;
@@ -135,23 +135,17 @@ switch (version_test as number) {
break; break;
case 1: case 1:
// on latest dev, no update // on latest dev, no update
THIS_VERSION = '3.7.2-dev.9'; THIS_VERSION = LATEST_DEV_VERSION;
LATEST_STABLE_VERSION = '3.7.2';
LATEST_DEV_VERSION = '3.7.3-dev.9';
VERSION_IS_UPGRADEABLE = false; VERSION_IS_UPGRADEABLE = false;
break; break;
case 2: case 2:
// upgrade stable to latest stable // upgrade stable to latest stable
THIS_VERSION = '3.6.5'; THIS_VERSION = '3.6.5';
LATEST_STABLE_VERSION = '3.7.2';
LATEST_DEV_VERSION = '3.7.3-dev.12';
VERSION_IS_UPGRADEABLE = true; VERSION_IS_UPGRADEABLE = true;
break; break;
case 3: case 3:
// upgrade dev to latest dev // upgrade dev to latest dev
THIS_VERSION = '3.7.2-dev-1'; THIS_VERSION = '3.7.3-dev-1';
LATEST_STABLE_VERSION = '3.7.2';
LATEST_DEV_VERSION = '3.7.3-dev.12';
VERSION_IS_UPGRADEABLE = true; VERSION_IS_UPGRADEABLE = true;
break; break;
} }