Skip to content

Commit 89d0e49

Browse files
committed
fix sortBy changes + pretty
1 parent 548babb commit 89d0e49

File tree

135 files changed

+18137
-17507
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+18137
-17507
lines changed

__tests__/CardsApi.unit.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -462,12 +462,10 @@ describe("CardsApi", () => {
462462
}));
463463

464464
const cardsApi = await new CardsApi(CONFIG_FOR_UNIT).list(
465-
1,
466-
"fake",
467-
"id",
468-
{
469-
id: "asc",
470-
}
465+
1, // limit
466+
"fake", // before
467+
"id", // after
468+
["total_count"] // include
471469
);
472470
expect(cardsApi).toBeDefined();
473471
expect(cardsApi.data?.length).toEqual(1);

__tests__/MiscellaneousModels.unit.ts

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import {
99
SortBy1,
1010
SortBy2,
1111
SortBy3,
12-
SortBy4,
13-
SortBy5,
1412
SortByDateCreatedEnum,
1513
SortBySendDateEnum,
1614
SortBy1DateCreatedEnum,
@@ -19,10 +17,6 @@ import {
1917
SortBy2SendDateEnum,
2018
SortBy3DateCreatedEnum,
2119
SortBy3SendDateEnum,
22-
SortBy4DateCreatedEnum,
23-
SortBy4SendDateEnum,
24-
SortBy5DateCreatedEnum,
25-
SortBy5SendDateEnum,
2620
Thumbnail,
2721
CountryExtended,
2822
TrackingEventCertified,
@@ -576,50 +570,6 @@ describe("Sort Criteria", () => {
576570
expect((rec as any)[prop]).toEqual(val);
577571
});
578572
});
579-
580-
describe("SortBy4", () => {
581-
it("can be created", () => {
582-
const rec = new SortBy4();
583-
expect(rec).toBeDefined();
584-
});
585-
586-
it.each([
587-
["date_created", SortBy4DateCreatedEnum.Asc],
588-
["date_created", SortBy4DateCreatedEnum.Desc],
589-
["send_date", SortBy4SendDateEnum.Asc],
590-
["send_date", SortBy4SendDateEnum.Desc],
591-
])("can be created with a provided %s value", (prop, val) => {
592-
const input = {};
593-
(input as any)[prop] = val;
594-
595-
const rec = new SortBy4(input);
596-
597-
expect(rec).toBeDefined();
598-
expect((rec as any)[prop]).toEqual(val);
599-
});
600-
});
601-
602-
describe("SortBy5", () => {
603-
it("can be created", () => {
604-
const rec = new SortBy5();
605-
expect(rec).toBeDefined();
606-
});
607-
608-
it.each([
609-
["date_created", SortBy5DateCreatedEnum.Asc],
610-
["date_created", SortBy5DateCreatedEnum.Desc],
611-
["send_date", SortBy5SendDateEnum.Asc],
612-
["send_date", SortBy5SendDateEnum.Desc],
613-
])("can be created with a provided %s value", (prop, val) => {
614-
const input = {};
615-
(input as any)[prop] = val;
616-
617-
const rec = new SortBy5(input);
618-
619-
expect(rec).toBeDefined();
620-
expect((rec as any)[prop]).toEqual(val);
621-
});
622-
});
623573
});
624574

625575
describe("Location", () => {

0 commit comments

Comments
 (0)