feat(tests): [nan-1763] add xero tests and adjust vitest #34
Annotations
4 errors
integrations/xero/tests/xero-contacts.test.ts > xero contacts tests > should get, map correctly the data and batchSave the result:
integrations/xero/tests/xero-contacts.test.ts#L16
AssertionError: expected "bound getBatchSaveData" to be called with arguments: [ [ { …(4) }, { …(4) } ], 'Contact' ]
Received:
1st bound getBatchSaveData call:
Array [
Array [
Object {
+ "address_line_1": null,
+ "address_line_2": null,
+ "city": null,
+ "country": null,
"email": "foo@gmail.com",
+ "external_id": null,
"id": "e1f8418e-a946-4013-80f6-ef52bb88f920",
"name": "XEro Test",
"phone": null,
+ "state": null,
+ "tax_number": null,
+ "zip": null,
},
Object {
+ "address_line_1": null,
+ "address_line_2": null,
+ "city": null,
+ "country": null,
"email": "who@gmail.com",
+ "external_id": null,
"id": "15c526df-25da-413d-aad3-50d2b351a9c8",
"name": "My Supplier",
"phone": "+5557774848",
+ "state": null,
+ "tax_number": null,
+ "zip": null,
},
],
"Contact",
]
Number of calls: 1
❯ integrations/xero/tests/xero-contacts.test.ts:16:33
|
integrations/xero/tests/xero-items.test.ts > xero items tests > should get, map correctly the data and batchSave the result:
integrations/xero/tests/xero-items.test.ts#L16
AssertionError: expected "bound getBatchSaveData" to be called with arguments: [ [ { …(2) } ], 'Item' ]
Received:
1st bound getBatchSaveData call:
Array [
Array [
Object {
+ "account_code": undefined,
+ "description": null,
"id": "ea10a915-3787-4c37-9ff7-ab33cc6b35f3",
"item_code": "item-1",
+ "name": "item-1",
},
],
"Item",
]
Number of calls: 1
❯ integrations/xero/tests/xero-items.test.ts:16:33
|
tests (ubuntu-latest, 18.x)
Process completed with exit code 1.
|
tests (ubuntu-latest, 20.x)
The job was canceled because "ubuntu-latest_18_x" failed.
|