diff --git a/src/widgets/ComparisonView/model/stores/comparisonStore.svelte.ts b/src/widgets/ComparisonView/model/stores/comparisonStore.svelte.ts index 4be6115..1f2bb28 100644 --- a/src/widgets/ComparisonView/model/stores/comparisonStore.svelte.ts +++ b/src/widgets/ComparisonView/model/stores/comparisonStore.svelte.ts @@ -26,7 +26,7 @@ import { import { type TypographySettingsStore, getTypographySettingsStore, -} from '$features/AdjustTypography/model'; +} from '$features/AdjustTypography'; import { createPersistentStore } from '$shared/lib'; import { untrack } from 'svelte'; import { getPretextFontString } from '../../lib'; diff --git a/src/widgets/ComparisonView/model/stores/comparisonStore.test.ts b/src/widgets/ComparisonView/model/stores/comparisonStore.test.ts index b151733..021193a 100644 --- a/src/widgets/ComparisonView/model/stores/comparisonStore.test.ts +++ b/src/widgets/ComparisonView/model/stores/comparisonStore.test.ts @@ -84,6 +84,12 @@ vi.mock('$entities/Font/model', async importOriginal => { }; }); +const mockTypography = vi.hoisted(() => ({ + weight: 400, + renderedSize: 48, + reset: vi.fn(), +})); + vi.mock('$features/AdjustTypography', () => ({ DEFAULT_TYPOGRAPHY_CONTROLS_DATA: [], createTypographyControlManager: vi.fn(() => ({ @@ -91,15 +97,6 @@ vi.mock('$features/AdjustTypography', () => ({ renderedSize: 48, reset: vi.fn(), })), -})); - -const mockTypography = vi.hoisted(() => ({ - weight: 400, - renderedSize: 48, - reset: vi.fn(), -})); - -vi.mock('$features/AdjustTypography/model', () => ({ getTypographySettingsStore: () => mockTypography, }));