-
Notifications
You must be signed in to change notification settings - Fork 9
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
1124 request restore ability to inject custom fetch instance #1535
base: main
Are you sure you want to change the base?
1124 request restore ability to inject custom fetch instance #1535
Conversation
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.
LGTM, left 1 minor comment.
/** | ||
* ThorClient module tests. | ||
* | ||
* @group integration/clients/thor-client |
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.
Minor: I think this one should be unit
instead of integration
.
hi @lucanicoladebiasi i dont see any tests for the new headers, how can u test that? |
Description
The class
packages/network/src/http/SimpleHttpClient.ts
introduces the possibility to sets headers in theSimpleHttpClient
constructor.The headers of built objects are included in every request made through the
http
method, if not overwritten by theparams
argument of the classpackages/network/src/http/HttpParams.ts
.This solutions allows to set headers to manage HTTP cookies and control-caching.
See the test
'ok <- GET and validate
atpackages/network/tests/http/SimpleHttpClient.solo.test.ts
.Fixes #1124
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
yarn test:solo
yarn test:unit
Test Configuration:
Checklist: