Skip to content

Instantly share code, notes, and snippets.

@PreyeaRegmi
Last active September 8, 2021 12:02
Show Gist options
  • Save PreyeaRegmi/011bcfbaeb158b445cb0d92008f185de to your computer and use it in GitHub Desktop.
Save PreyeaRegmi/011bcfbaeb158b445cb0d92008f185de to your computer and use it in GitHub Desktop.
test(
"EMI must be 150391.64490861617 for amount = 10,000, rate = 15%, time =24 months",
() {
FetchLoanDetail fetchLoanUseCase =
FetchLoanDetail(MockedSucessRateFetchRepository(LoanDetailDTO("15")));
fetchLoanUseCase.execute(
LoanParamRequest(10000, 24), expectAsync1((data) {
expect("150391.64490861617",equals( data._emi),reason: "Emi calculation invalid");
}), (error) {
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment