Skip to content

Commit

Permalink
test: fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
UnderKoen committed Apr 4, 2024
1 parent aed3508 commit 1da1e19
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions test/CsvOrder.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ describe("getOrders", function () {
await sleep(1000);
}

await order.refresh();

const totalOrders = order.totalOrderCount;
const failedOrderCount = order.failedOrderCount;
const processedOrderCount = order.processedOrderCount;
Expand Down
3 changes: 0 additions & 3 deletions test/Order.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ describe("download", function () {

describe("cancel", function () {
it("should cancel the order", async function () {
// precondition
expect(order.isBillable).toEqual(true);

// arrange

// act
Expand Down
4 changes: 3 additions & 1 deletion test/PrintOne.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ describe("createCsvOrder", function () {
country: "{{Country}}",
postalCode: "{{ZIP}}",
},
mergeVariables: {},
};

beforeAll(() => {
Expand Down Expand Up @@ -819,6 +820,7 @@ describe("getCsvOrder", function () {
country: "{{Country}}",
postalCode: "{{ZIP}}",
},
mergeVariables: {},
};

beforeAll(async () => {
Expand Down Expand Up @@ -862,7 +864,7 @@ describe("getCsvOrder", function () {
expect(csvOrder.processedOrderCount).toEqual(expect.any(Number));
expect(csvOrder.totalOrderCount).toEqual(expect.any(Number));
});
})
});

describe("getOrder", function () {
let orderId: string = null as unknown as string;
Expand Down

0 comments on commit 1da1e19

Please sign in to comment.