test: fix ISS-007 clock parse — replace only fixed the first space
CI / build + unit + e2e (pull_request) Successful in 6m4s
CI / build + unit + e2e (pull_request) Successful in 6m4s
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user