Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Mortgage class & tests #226

Merged
merged 4 commits into from
Jan 7, 2025
Merged

fix: Mortgage class & tests #226

merged 4 commits into from
Jan 7, 2025

Conversation

zz-hh-aa
Copy link
Collaborator

@zz-hh-aa zz-hh-aa commented Jan 7, 2025

This PR rewrites calculateYearlyPaymentBreakdown() and adds tests for the Mortgage class

While writing more class tests in another branch, I realised that the Mortgage method calculateYearlyPaymentBreakdown() was incorrectly calculating interest paid, principal paid, etc.

@zz-hh-aa zz-hh-aa requested a review from a team January 7, 2025 12:00
Copy link

vercel bot commented Jan 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fairhold-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 7, 2025 0:24am

Copy link
Contributor

@DafyddLlyr DafyddLlyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

app/models/Mortgage.test.ts Outdated Show resolved Hide resolved
app/models/Mortgage.test.ts Outdated Show resolved Hide resolved
app/models/Mortgage.test.ts Outdated Show resolved Hide resolved
app/models/Mortgage.test.ts Show resolved Hide resolved
Co-authored-by: Dafydd Llŷr Pearson <[email protected]>
@zz-hh-aa zz-hh-aa merged commit 13bd4de into main Jan 7, 2025
5 checks passed
@zz-hh-aa zz-hh-aa deleted the oz/mortgage-fixes branch January 7, 2025 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants