Skip to content

Commit

Permalink
test: fixed a broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRill00 committed Mar 11, 2024
1 parent 8420046 commit 0c76223
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion test/Batch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ describe("getCsvOrder", function () {
expect(csvOrder.recipientMapping).toEqual(mapping.recipient);
expect(csvOrder.templateId).toEqual(template.id);
expect(csvOrder.mergeVariableMapping).toEqual(mapping.mergeVariables);
expect(csvOrder.billingId).toEqual(undefined);
expect(csvOrder.billingId).toBeOneOf([undefined, expect.any(String)]);
expect(csvOrder.finish).toEqual(expect.any(String));
expect(csvOrder.format).toEqual(expect.any(String));
expect(csvOrder.isBillable).toEqual(expect.any(Boolean));
Expand Down
8 changes: 4 additions & 4 deletions test/PrintOne.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,11 +670,11 @@ describe("createCsvOrder", function () {
let file: ArrayBuffer = null as unknown as ArrayBuffer;
const mapping: CreateCsvOrder["mapping"] = {
recipient: {
city: "{{City}}",
name: "{{FirstName}} {{LastName}}",
address: "{{Street}} {{HouseNr}}",
country: "{{Country}}",
postalCode: "{{ZIP}}",
city: "{{City}}",
country: "{{Country}}",
},
};

Expand Down Expand Up @@ -721,7 +721,7 @@ describe("createCsvOrder", function () {
expect(csvOrder.recipientMapping).toEqual(mapping.recipient);
expect(csvOrder.templateId).toEqual(template.id);
expect(csvOrder.mergeVariableMapping).toEqual(mapping.mergeVariables);
expect(csvOrder.billingId).toEqual(undefined);
expect(csvOrder.billingId).toBeOneOf([undefined, expect.any(String)]);
expect(csvOrder.finish).toEqual(expect.any(String));
expect(csvOrder.format).toEqual(expect.any(String));
expect(csvOrder.isBillable).toEqual(expect.any(Boolean));
Expand Down Expand Up @@ -845,7 +845,7 @@ describe("getCsvOrder", function () {
expect(csvOrder.recipientMapping).toEqual(mapping.recipient);
expect(csvOrder.templateId).toEqual(template.id);
expect(csvOrder.mergeVariableMapping).toEqual(mapping.mergeVariables);
expect(csvOrder.billingId).toEqual(undefined);
expect(csvOrder.billingId).toBeOneOf([undefined, expect.any(String)]);
expect(csvOrder.finish).toEqual(expect.any(String));
expect(csvOrder.format).toEqual(expect.any(String));
expect(csvOrder.isBillable).toEqual(expect.any(Boolean));
Expand Down

0 comments on commit 0c76223

Please sign in to comment.