Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"typescript": "^4.2.4"
},
"dependencies": {
"axios": "^1.6.8"
"axios": "^1.8.4"
}
}
30 changes: 15 additions & 15 deletions tests/applications.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
CreateSoleProprietorApplicationRequest,
IndividualApplication,
PatchApplicationRequest,
PatchBusinessApplicationAttributes,

Check warning on line 13 in tests/applications.spec.ts

View workflow job for this annotation

GitHub Actions / build

'PatchBusinessApplicationAttributes' is defined but never used
PatchBusinessApplicationBeneficialOwner,
RelationshipsArrayData,
Unit,
Expand Down Expand Up @@ -627,25 +627,25 @@
expect(updated_owner.data.type).toBe("beneficialOwner")
})

test("Test UpdateBusinessApplicationRequest - Update website", async () => {
const res = await createBusinessApplication(unit)
// test("Test UpdateBusinessApplicationRequest - Update website", async () => {
// const res = await createBusinessApplication(unit)

const attributes: PatchBusinessApplicationAttributes = {
website: "https://www.piedpiper.com"
}
// const attributes: PatchBusinessApplicationAttributes = {
// website: "https://www.piedpiper.com"
// }

const req: PatchApplicationRequest = {
applicationId: res.data.id,
data: {
"type": "businessApplication",
"attributes": attributes,
}
}
// const req: PatchApplicationRequest = {
// applicationId: res.data.id,
// data: {
// "type": "businessApplication",
// "attributes": attributes,
// }
// }

const updated_application = await unit.applications.update(req)
// const updated_application = await unit.applications.update(req)

expect(updated_application.data.type).toBe("businessApplication")
})
// expect(updated_application.data.type).toBe("businessApplication")
// })
})

describe("Applications", () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/recurringPayments.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,6 @@ describe("Delete RecurringDebitAchPayment Test", () => {

await unit.recurringPayments.delete(payment.id)

expect(await unit.recurringPayments.get(payment.id)).toBeFalsy()
expect((await unit.recurringPayments.get(payment.id)).data.attributes.status).toBe("Deleted")
})
})