Update board integration test assertions for dateTo = date + 1 day

This commit is contained in:
2026-04-17 22:51:43 +03:00
parent 79fcf2bdc1
commit 38b33aa349
@@ -212,7 +212,7 @@ describe("Flight search page integration", () => {
const callArgs = mockUseOnlineBoard.mock.calls[0]?.[0] as Record<string, string>;
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<string, string>;
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<string, string>;
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",
});