From 38b33aa349bef40e7d9ddc5929e2c00eff89dfc0 Mon Sep 17 00:00:00 2001 From: gnezim Date: Fri, 17 Apr 2026 22:51:43 +0300 Subject: [PATCH] Update board integration test assertions for dateTo = date + 1 day --- tests/integration/online-board/flight-search.test.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/online-board/flight-search.test.tsx b/tests/integration/online-board/flight-search.test.tsx index d73e6d36..b782cda4 100644 --- a/tests/integration/online-board/flight-search.test.tsx +++ b/tests/integration/online-board/flight-search.test.tsx @@ -212,7 +212,7 @@ describe("Flight search page integration", () => { const callArgs = mockUseOnlineBoard.mock.calls[0]?.[0] as Record; expect(callArgs).toEqual({ dateFrom: "2025-01-15T00:00:00", - dateTo: "2025-01-15T00:00:00", + dateTo: "2025-01-16T00:00:00", departure: "SVO", }); }); @@ -233,7 +233,7 @@ describe("Flight search page integration", () => { const callArgs = mockUseOnlineBoard.mock.calls[0]?.[0] as Record; expect(callArgs).toEqual({ dateFrom: "2025-01-15T00:00:00", - dateTo: "2025-01-15T00:00:00", + dateTo: "2025-01-16T00:00:00", flightNumber: "SU100", }); }); @@ -254,7 +254,7 @@ describe("Flight search page integration", () => { const callArgs = mockUseOnlineBoard.mock.calls[0]?.[0] as Record; expect(callArgs).toEqual({ dateFrom: "2025-01-15T00:00:00", - dateTo: "2025-01-15T00:00:00", + dateTo: "2025-01-16T00:00:00", departure: "SVO", arrival: "JFK", });