From ce7230e1aafd8bd133779d16dfe41102700b1165 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Sat, 15 Aug 2026 12:57:12 +0200 Subject: [PATCH] fix: complete location input test options --- .../src/_inputs/widget-location-input.spec.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/widgets/src/_inputs/widget-location-input.spec.tsx b/packages/widgets/src/_inputs/widget-location-input.spec.tsx index ec5d0ccb6..94944c4d1 100644 --- a/packages/widgets/src/_inputs/widget-location-input.spec.tsx +++ b/packages/widgets/src/_inputs/widget-location-input.spec.tsx @@ -7,8 +7,12 @@ import type { Root } from "react-dom/client"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; import { WidgetLocationInput } from "./widget-location-input"; +import { optionsBuilder } from "../options"; const defaultLocation = { name: "Paris", latitude: 48.8566, longitude: 2.3522 }; +const locationOptions = optionsBuilder.from((factory) => ({ + location: factory.location({ defaultValue: defaultLocation }), +})).location; const mocks = vi.hoisted(() => ({ values: {} as Record, @@ -79,12 +83,7 @@ afterEach(async () => { const renderInput = async () => { await act(async () => { root.render( - , + , ); }); };