@times-components/ts-components 1.145.1-7e7a12feaf05c514789e802bf49cadca92e6a2b9.10 → 1.145.1-9176eda9ce171a0f5596bdc9d385a1fc60b23ea1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -202,10 +202,9 @@ describe('fetchCruiseCards', () => {
|
|
|
202
202
|
const result = await fetchCruiseCards([1, 2]);
|
|
203
203
|
|
|
204
204
|
// Should only include the valid offer with future date
|
|
205
|
-
expect(result).toHaveLength(
|
|
205
|
+
expect(result).toHaveLength(1);
|
|
206
206
|
expect(result[0]).toBeDefined();
|
|
207
207
|
expect(result[0].cruise_id).toBe('1');
|
|
208
|
-
expect(result[1]).toBeUndefined(); // Past offer was filtered out
|
|
209
208
|
});
|
|
210
209
|
|
|
211
210
|
it('filters out offers with invalid date format', async () => {
|
|
@@ -232,10 +231,9 @@ describe('fetchCruiseCards', () => {
|
|
|
232
231
|
|
|
233
232
|
const result = await fetchCruiseCards([1, 2]);
|
|
234
233
|
|
|
235
|
-
expect(result).toHaveLength(
|
|
234
|
+
expect(result).toHaveLength(1);
|
|
236
235
|
expect(result[0]).toBeDefined();
|
|
237
236
|
expect(result[0].cruise_id).toBe('1');
|
|
238
|
-
expect(result[1]).toBeUndefined(); // Invalid date offer was filtered out
|
|
239
237
|
});
|
|
240
238
|
|
|
241
239
|
it('includes offers departing today', async () => {
|