-
Notifications
You must be signed in to change notification settings - Fork 53
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
Adds support for claims API #460
Conversation
expect(firstIdOfFirstPage).to.not.equal(firstIdOfSecondPage); | ||
} catch (error) { | ||
if (!(error instanceof EndOfPaginationError)) { | ||
throw new Error('Test failed intentionally'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this logic is backwards? Getting an EndOfPaginationError is fine and is the eventual expected path. Getting any other error is an error. Perhaps the wording "intentionally" is invalid here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm... I just copy-pasted this from insurance's tests. I'm not quite sure I understand?
Getting an EndOfPaginationError is fine and is the eventual expected path
Yea, I think thats what this is counting on. If it's not an EndOfPaginationError
, then throw an error.
I can probably refactor this to be more clear what we are doing with something like
if (error instanceof EndOfPaginationError) {
// all gucci
return;
}
throw error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please bump all endpoints to their v2 (GA) equivalent.
Description
Creates the model, service, tests, and types for the claims API.
Also fixes a minor issue with the beta APIs where it added two slashes, making it like
//beta/whatever
Testing
Adds new tests based off the existing insurance tests
Pull Request Type
Please select the option(s) that are relevant to this PR.