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

refactor(web-server): update lib/web-server to ES6 #3034

Merged
merged 1 commit into from
Jun 11, 2018
Merged

refactor(web-server): update lib/web-server to ES6 #3034

merged 1 commit into from
Jun 11, 2018

Conversation

lusarz
Copy link
Contributor

@lusarz lusarz commented Jun 9, 2018

No description provided.

@lusarz lusarz changed the title refactor(web-server): refactor lib/web-server to be more ES6 refactor(web-server): update lib/web-server to ES6 Jun 9, 2018
}
}

createCustomHandler.$inject = ['customFileHandlers', 'config.basePath']
Copy link
Contributor

Choose a reason for hiding this comment

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

Where did the injection keys end up?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed them. Dependency injection framework use autoAnnonate in that case (read function parameter names)
https://github.com/vojtajina/node-di/blob/master/lib/injector.js#L70

After consideration I think it would be better to use $inject - I'm gonna fix it now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

BTW, are customFileHandlers used in some way ? I see they are initialized here:

karma/lib/server.js

Lines 74 to 75 in 011a90c

// TODO(vojta): remove
customFileHandlers: ['value', []],

as empty array, and never changed (also comment 'TODO: remove' exists). Maybe we can get rid of everything related with that ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Revert $inject - done

@johnjbarton johnjbarton merged commit 5272aa3 into karma-runner:master Jun 11, 2018
@lusarz lusarz deleted the refactor-web-server branch June 12, 2018 06:03
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.

None yet

2 participants