fmt
This commit is contained in:
parent
30d36a33d5
commit
7bc591be2b
10 changed files with 64 additions and 51 deletions
|
|
@ -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', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue