test: fix ISS-007 clock parse — replace only fixed the first space
CI / build + unit + e2e (pull_request) Successful in 6m4s

This commit is contained in:
2026-09-19 14:20:34 +00:00
parent 7d2f8f07c8
commit 3acf471295
+1 -1
View File
@@ -119,7 +119,7 @@ test('sim clock ticks smoothly between polls — seconds advance without waiting
const sample = async () => {
const text = ((await clock.textContent()) ?? '').trim();
expect(text, `clock format: ${text}`).toMatch(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} UTC$/);
return Date.parse(`${text.replace(' ', 'T')}Z`);
return Date.parse(text.replace(' ', 'T').replace(' UTC', 'Z'));
};
// Three samples ~1.3 s apart real time: at scale 1000 each gap is ≈1300 game seconds, so the