mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 09:12:18 +00:00
Merge pull request #1798 from bilawalsidhu/fix/weather-test-clock
Pin the clock in the weather panel's identical-updates test
This commit is contained in:
1 file changed
+7
-1
@@ -216,7 +216,13 @@ test('cyclone readout retains advisory, position, intensity, geometry, coverage,
|
||||
assert.equal(f.find((n) => n.className === 'rail-card-ramp').hidden, true);
|
||||
view.destroy();
|
||||
});
|
||||
test('identical updates write nothing and status keeps its line through loading and empty text', () => {
|
||||
test('identical updates write nothing and status keeps its line through loading and empty text', (t) => {
|
||||
// Ages read in whole minutes: a real clock crossing a minute between the two
|
||||
// updates would rightly rewrite them.
|
||||
t.mock.timers.enable({
|
||||
apis: ['Date'],
|
||||
now: Date.parse('2026-09-22T01:17:00Z'),
|
||||
});
|
||||
const f = fixture();
|
||||
const view = createWeatherPanel(f);
|
||||
for (const entries of [
|
||||
|
||||
Reference in new issue
Block a user