feat: Add ACH payment flows #6857
Annotations
5 errors
|
Upload test results to Codecov public QA
The operation was canceled.
|
Run tests:
src/services/account/useAccountDetails.test.tsx#L66
AssertionError: expected undefined to deeply equal { integrationId: 1271, …(16) }
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
- Expected:
Object {
"activatedStudentCount": 1,
"activatedUserCount": 19,
"checkoutSessionId": null,
"delinquent": null,
"email": null,
"inactiveUserCount": 5,
"integrationId": 1271,
"name": "codecov",
"nbActivePrivateRepos": 12,
"planAutoActivate": true,
"planProvider": null,
"repoTotalCredits": 99999999,
"rootOrganization": null,
"scheduleDetail": null,
"studentCount": 1,
"subscriptionDetail": Object {
"cancelAtPeriodEnd": false,
"collectionMethod": null,
"currentPeriodEnd": 1636479475,
"customer": Object {
"discount": Object {
"durationInMonths": 12,
"expires": 1,
"name": "yep",
"percentOff": 25,
},
"email": "[email protected]",
"id": "blahblah",
},
"defaultPaymentMethod": Object {
"billingDetails": Object {
"address": Object {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postalCode": null,
"state": null,
},
"email": null,
"name": null,
"phone": null,
},
"card": Object {
"brand": "mastercard",
"expMonth": 4,
"expYear": 2023,
"last4": "8091",
},
},
"latestInvoice": Object {
"amountDue": 1407,
"amountPaid": 1407,
"amountRemaining": 0,
"created": 1634910009,
"currency": "usd",
"customerAddress": null,
"customerName": "Accounts Payable Codecov",
"dueDate": 1637502009,
"id": "in_1JnNyfGlVGuVgOrkkdkCYayW",
"invoicePdf": "https://pay.stripe.com/invoice/acct_14SJTOGlVGuVgOrk/live_YWNjdF8xNFNKVE9HbFZHdVZnT3JrLF9LU0laYWVJMGZMaXNDVUpIa28xeVJoT3NmUlhrU2tz0100SEABsdVD/pdf",
"lineItems": Array [
Object {
"amount": -14766,
"currency": "usd",
"description": "Unused time on 21 × users-pr-inappm after 22 Oct 2021",
"period": Object {
"end": 1636479475,
"start": 1634910008,
},
"planName": "users-pr-inappm",
"quantity": 21,
},
Object {
"amount": 16173,
"currency": "usd",
"description": "Remaining time on 23 × users-pr-inappm after 22 Oct 2021",
"period": Object {
"end": 1636479475,
"start": 1634910008,
},
"planName": "users-pr-inappm",
"quantity": 23,
},
],
"number": "BE7E6CB0-0031",
"periodEnd": 1634910008,
"periodStart": 1633801075,
"status": "paid",
"subtotal": 1407,
"total": 1407,
},
"taxIds": Array [],
"trialEnd": null,
},
"usesInvoice": true,
}
+ Received:
undefined
❯ src/services/account/useAccountDetails.test.tsx:66:37
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
Run tests:
src/services/account/useAccountDetails.test.tsx#L92
AssertionError: expected undefined to deeply equal { integrationId: 1271, …(16) }
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
- Expected:
Object {
"activatedStudentCount": 1,
"activatedUserCount": 19,
"checkoutSessionId": null,
"delinquent": null,
"email": null,
"inactiveUserCount": 5,
"integrationId": 1271,
"name": "codecov",
"nbActivePrivateRepos": 12,
"planAutoActivate": true,
"planProvider": null,
"repoTotalCredits": 99999999,
"rootOrganization": null,
"scheduleDetail": null,
"studentCount": 1,
"subscriptionDetail": Object {
"cancelAtPeriodEnd": false,
"collectionMethod": null,
"currentPeriodEnd": 1636479475,
"customer": Object {
"discount": Object {
"durationInMonths": 12,
"expires": 1,
"name": "yep",
"percentOff": 25,
},
"email": "[email protected]",
"id": "blahblah",
},
"defaultPaymentMethod": Object {
"billingDetails": null,
"usBankAccount": Object {
"bankName": "Bank of America",
"last4": "1234",
},
},
"latestInvoice": Object {
"amountDue": 1407,
"amountPaid": 1407,
"amountRemaining": 0,
"created": 1634910009,
"currency": "usd",
"customerAddress": null,
"customerName": "Accounts Payable Codecov",
"dueDate": 1637502009,
"id": "in_1JnNyfGlVGuVgOrkkdkCYayW",
"invoicePdf": "https://pay.stripe.com/invoice/acct_14SJTOGlVGuVgOrk/live_YWNjdF8xNFNKVE9HbFZHdVZnT3JrLF9LU0laYWVJMGZMaXNDVUpIa28xeVJoT3NmUlhrU2tz0100SEABsdVD/pdf",
"lineItems": Array [
Object {
"amount": -14766,
"currency": "usd",
"description": "Unused time on 21 × users-pr-inappm after 22 Oct 2021",
"period": Object {
"end": 1636479475,
"start": 1634910008,
},
"planName": "users-pr-inappm",
"quantity": 21,
},
Object {
"amount": 16173,
"currency": "usd",
"description": "Remaining time on 23 × users-pr-inappm after 22 Oct 2021",
"period": Object {
"end": 1636479475,
"start": 1634910008,
},
"planName": "users-pr-inappm",
"quantity": 23,
},
],
"number": "BE7E6CB0-0031",
"periodEnd": 1634910008,
"periodStart": 1633801075,
"status": "paid",
"subtotal": 1407,
"total": 1407,
},
"taxIds": Array [],
"trialEnd": null,
},
"usesInvoice": true,
}
+ Received:
undefined
❯ src/services/account/useAccountDetails.test.tsx:92:37
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
Run tests
Process completed with exit code 1.
|
Loading