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

Refactors Axios unit tests #369

Merged
merged 2 commits into from
Jun 27, 2019
Merged

Refactors Axios unit tests #369

merged 2 commits into from
Jun 27, 2019

Conversation

codefromthecrypt
Copy link
Member

Step 1: make the request headers test do what it says it does

Step 1: make the request headers test do what it says it does
it('should add headers to requests', done => {
tracer.scoped(() => {
const zipkinAxiosClient = getClient();
const urlPath = '/weather/wuhan';
const url = `http://${apiHost}:${apiPort}${urlPath}?index=10&count=300`;
zipkinAxiosClient
Copy link
Member Author

Choose a reason for hiding this comment

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

@openzipkin/zipkin-js-champions in I think every integration test, we copy/pasted the same code which didn't actually test that headers were added!

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