Skip to content

Commit

Permalink
test: ✅ fixed empty CSV mapping expected
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRill00 committed Mar 25, 2024
1 parent 868b287 commit 731ab4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/Batch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ describe("createCsvOrder", function () {
expect(csvOrder.sender).toEqual(undefined);
expect(csvOrder.recipientMapping).toEqual(mapping.recipient);
expect(csvOrder.templateId).toEqual(template.id);
expect(csvOrder.mergeVariableMapping).toEqual(mapping.mergeVariables);
expect(csvOrder.mergeVariableMapping).toBe({});

Check failure on line 129 in test/Batch.spec.ts

View workflow job for this annotation

GitHub Actions / Test

createCsvOrder › should create a csv order with all fields

expect(received).toBe(expected) // Object.is equality If it should pass with deep equality, replace "toBe" with "toStrictEqual" Expected: {} Received: serializes to the same string at Object.<anonymous> (test/Batch.spec.ts:129:43)
expect(csvOrder.billingId).toEqual(
expect.toBeOneOf([undefined, expect.any(String)]),
);
Expand Down Expand Up @@ -181,7 +181,7 @@ describe("getCsvOrder", function () {
expect(csvOrder.sender).toEqual(undefined);
expect(csvOrder.recipientMapping).toEqual(mapping.recipient);
expect(csvOrder.templateId).toEqual(template.id);
expect(csvOrder.mergeVariableMapping).toEqual(mapping.mergeVariables);
expect(csvOrder.mergeVariableMapping).toBe({});

Check failure on line 184 in test/Batch.spec.ts

View workflow job for this annotation

GitHub Actions / Test

getCsvOrder › should get a csv order with all fields

expect(received).toBe(expected) // Object.is equality If it should pass with deep equality, replace "toBe" with "toStrictEqual" Expected: {} Received: serializes to the same string at Object.<anonymous> (test/Batch.spec.ts:184:43)
expect(csvOrder.billingId).toBeOneOf([undefined, expect.any(String)]);
expect(csvOrder.finish).toEqual(expect.any(String));
expect(csvOrder.format).toEqual(expect.any(String));
Expand Down
4 changes: 2 additions & 2 deletions test/PrintOne.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ describe("createCsvOrder", function () {
expect(csvOrder.sender).toEqual(undefined);
expect(csvOrder.recipientMapping).toEqual(mapping.recipient);
expect(csvOrder.templateId).toEqual(template.id);
expect(csvOrder.mergeVariableMapping).toEqual(mapping.mergeVariables);
expect(csvOrder.mergeVariableMapping).toBe({});

Check failure on line 723 in test/PrintOne.spec.ts

View workflow job for this annotation

GitHub Actions / Test

createCsvOrder › should create a csv order with all fields

expect(received).toBe(expected) // Object.is equality If it should pass with deep equality, replace "toBe" with "toStrictEqual" Expected: {} Received: serializes to the same string at Object.<anonymous> (test/PrintOne.spec.ts:723:43)
expect(csvOrder.billingId).toBeOneOf([undefined, expect.any(String)]);
expect(csvOrder.finish).toEqual(expect.any(String));
expect(csvOrder.format).toEqual(expect.any(String));
Expand Down Expand Up @@ -844,7 +844,7 @@ describe("getCsvOrder", function () {
expect(csvOrder.sender).toEqual(undefined);
expect(csvOrder.recipientMapping).toEqual(mapping.recipient);
expect(csvOrder.templateId).toEqual(template.id);
expect(csvOrder.mergeVariableMapping).toEqual(mapping.mergeVariables);
expect(csvOrder.mergeVariableMapping).toBe({});

Check failure on line 847 in test/PrintOne.spec.ts

View workflow job for this annotation

GitHub Actions / Test

getCsvOrder › should get a csv order with all fields

expect(received).toBe(expected) // Object.is equality If it should pass with deep equality, replace "toBe" with "toStrictEqual" Expected: {} Received: serializes to the same string at Object.<anonymous> (test/PrintOne.spec.ts:847:43)
expect(csvOrder.billingId).toBeOneOf([undefined, expect.any(String)]);
expect(csvOrder.finish).toEqual(expect.any(String));
expect(csvOrder.format).toEqual(expect.any(String));
Expand Down

0 comments on commit 731ab4d

Please sign in to comment.