fix: versietest pint geen vast nummer meer (v0.3.79-beta)
All checks were successful
dev - build & deploy naar test / build-and-deploy (push) Successful in 43s

- De CI faalde omdat een test het versienummer hardcodeerde (0.3.77-beta) en dus bij elke reguliere versiebump breekt
- De test bewaakt nu het echte beleid: de dev-branch voert altijd een -beta-versie en de VERSION-file loopt gelijk met de const in core.js (die controle stond er al en blijft)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0149FgUQvuwxKKEdvQGmNngF
This commit is contained in:
Ramon 2026-07-16 15:01:59 +02:00
parent 2a0de85152
commit 4356658c96
3 changed files with 5 additions and 3 deletions

View file

@ -1 +1 @@
0.3.78-beta 0.3.79-beta

View file

@ -2,7 +2,7 @@
"use strict"; "use strict";
/* version shown until /api/version resolves (or if the fetch fails, e.g. offline). /* version shown until /api/version resolves (or if the fetch fails, e.g. offline).
Kept in sync by hand with the VERSION file at the repo root on every release. */ Kept in sync by hand with the VERSION file at the repo root on every release. */
const VERSION = "0.3.78-beta"; const VERSION = "0.3.79-beta";
(function(){ (function(){
const tag = document.getElementById("verTag"); const tag = document.getElementById("verTag");
tag.textContent = "v"+VERSION; tag.textContent = "v"+VERSION;

View file

@ -426,5 +426,7 @@ test('topografie heeft een inhoudelijk brede naam en de beta-versie is gelijkget
assert.ok(core.includes('wg_topography:"Topography"')); assert.ok(core.includes('wg_topography:"Topography"'));
assert.doesNotMatch(core,/wg_topography:"(?:Topografie Nederland|Map of the Netherlands)"/); assert.doesNotMatch(core,/wg_topography:"(?:Topografie Nederland|Map of the Netherlands)"/);
assert.match(core,new RegExp(`const VERSION = "${version.trim().replaceAll('.','\\.')}"`)); assert.match(core,new RegExp(`const VERSION = "${version.trim().replaceAll('.','\\.')}"`));
assert.match(version,/^0\.3\.77-beta\s*$/); /* geen vast nummer pinnen (dat breekt bij elke bump): het beleid is dat de
dev-branch altijd een -beta-versie voert en core.js gelijkloopt (hierboven) */
assert.match(version,/^\d+\.\d+\.\d+-beta\s*$/);
}); });