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

SDK-3311: Integrate problem details library #1103

Merged
merged 3 commits into from
Aug 13, 2024

Conversation

edwardsph
Copy link
Contributor

New feature description

This PR integrates the @inrupt/solid-client-errors library into this code and alters the tests accordingly.

Checklist

  • All acceptance criteria are met.
  • Relevant documentation, if any, has been written/updated.
  • The changelog has been updated, if applicable.
  • [n/a] New functions/types have been exported in index.ts, if applicable.
  • [n/a] New modules (i.e. new .ts files) are listed in the exports field in package.json, if applicable.
  • [n/a] New modules (i.e. new .ts files) are listed in the typedocOptions.entryPoints field in tsconfig.json, if applicable.
  • Commits in this PR are minimal and have descriptive commit messages.

@edwardsph edwardsph requested a review from a team as a code owner August 13, 2024 09:10
@edwardsph edwardsph requested a review from NSeydoux August 13, 2024 09:10
CHANGELOG.md Show resolved Hide resolved
Comment on lines +534 to +537
mockedFetch = mockedFetchWithResponse(
401,
`{"status": 401, "title": "Unauthorized", "detail": "Example detail"}`,
{ "Content-Type": "application/problem+json" },
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be helpful to expose a mock function from the base error library? I reckon we'll do this type of mock for all libraries being integrated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Perhaps, although there are probably other common mock functions that could be in a base library but not errors.

src/issue/issue.ts Show resolved Hide resolved
@edwardsph edwardsph merged commit 755d75c into main Aug 13, 2024
22 checks passed
@edwardsph edwardsph deleted the sdk-3311-error-descriptions branch August 13, 2024 10:33
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