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

Feature/wd 2297/credit assessment #22

Merged
merged 39 commits into from
Apr 7, 2021
Merged

Conversation

boscar
Copy link
Contributor

@boscar boscar commented Jan 27, 2021

Add credit assessment support

This PR is related to this JIRA task

Changes

  • Add support for credit assessment functions:
    • Create new case.
    • Decline case.
    • Get case status.
    • Sign case with bank id.
    • Cancel case bank id signing.
    • Accept case (to proceed to a credit application given an assessment).
  • Add credit assessment types.

@boscar boscar requested a review from ourbjorn January 27, 2021 11:44

const inquiry = fixture("ICreditAssessmentInquiry");

try {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it would make more sense to validate the throw directly;

expect(() => await newCase(inquiry)).toThrow();

it("Throws error", async () => {
const inquiry = fixture("ICreditAssessmentInquiry");

let err: any;
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should be able to get rid of some code, by expecting a throw instead;

expect(async () => await newCase(inquiry)).toThrow();

@ourbjorn
Copy link
Collaborator

Nice work!

@boscar boscar marked this pull request as ready for review April 1, 2021 13:38
@boscar boscar merged commit b7c669d into master Apr 7, 2021
@boscar boscar deleted the feature/WD-2297/credit-assessment branch April 7, 2021 10:56
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.

None yet

2 participants