-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
mockedFetch = mockedFetchWithResponse( | ||
401, | ||
`{"status": 401, "title": "Unauthorized", "detail": "Example detail"}`, | ||
{ "Content-Type": "application/problem+json" }, |
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.
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.
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.
Perhaps, although there are probably other common mock functions that could be in a base library but not errors.
Co-authored-by: Zwifi <[email protected]>
New feature description
This PR integrates the @inrupt/solid-client-errors library into this code and alters the tests accordingly.
Checklist
index.ts
, if applicable..ts
files) are listed in theexports
field inpackage.json
, if applicable..ts
files) are listed in thetypedocOptions.entryPoints
field intsconfig.json
, if applicable.