Update board integration test assertions for dateTo = date + 1 day
This commit is contained in:
@@ -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",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user