fmt
All checks were successful
Build and publish Docker image / build-and-push (push) Successful in 6m31s
CI / Check (push) Successful in 10m26s

This commit is contained in:
Andras Schmelczer 2026-06-26 19:57:59 +01:00
parent 30d36a33d5
commit 7bc591be2b
10 changed files with 64 additions and 51 deletions

View file

@ -2,6 +2,7 @@ import { beforeEach, describe, expect, it } from 'vitest';
import type { FeatureMeta } from '../types';
import { parseUrlState, stateToParams } from './url-state';
import { DEFAULT_OVERLAY_IDS } from './overlays';
import { INITIAL_VIEW_STATE } from './consts';
import { createSchoolFilterKey } from './school-filter';
import { createSpecificCrimeFilterKey } from './crime-filter';
@ -199,10 +200,10 @@ describe('url-state', () => {
expect(state.overlays).toEqual(new Set(['noise', 'crime-hotspots']));
});
it('enables crime + trees overlays by default on a fresh visit', () => {
it('enables the default overlays on a fresh visit', () => {
const state = parseUrlState();
expect(state.overlays).toEqual(new Set(['crime-hotspots', 'trees-outside-woodlands']));
expect(state.overlays).toEqual(new Set(DEFAULT_OVERLAY_IDS));
});
it('round-trips an explicit "all overlays off" via the __none sentinel', () => {