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

[Chip] Add tests for handleKeyDown for Chip module #6379

Merged
merged 2 commits into from
Mar 19, 2017

Conversation

agamrafaeli
Copy link
Contributor

No description provided.

@muibot muibot added PR: Needs Review PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI and removed PR: Needs Review labels Mar 18, 2017
@agamrafaeli agamrafaeli changed the title Add tests for handleKeyDown for Chip module [Chip] Add tests for handleKeyDown for Chip module Mar 18, 2017
- Declared but unused variable
- Trailing comma
- Missing semi-colon
- Not modified variables that should have const protection
@mbrookes mbrookes added component: chip This is the name of the generic UI component, not the React module! next and removed PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI labels Mar 18, 2017
const preventDefaultSpy = spy();
const spaceKeydownEvent = {
preventDefault: preventDefaultSpy,
keyCode: 32, // keycode `space`
Copy link
Member

@oliviertassinari oliviertassinari Mar 19, 2017

Choose a reason for hiding this comment

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

We could have been using

import keycode from 'keycode';

keycode('space');

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's actually a good idea. I'll put in a PR for this. 👍

@oliviertassinari
Copy link
Member

+0.7% coverage increase, it's even better this time 😄 .

@oliviertassinari oliviertassinari merged commit 3610b9d into mui:next Mar 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: chip This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants