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

Add Dashicon unit tests. #928

Merged
merged 1 commit into from May 29, 2017
Merged

Add Dashicon unit tests. #928

merged 1 commit into from May 29, 2017

Conversation

BE-Webdesign
Copy link
Contributor

Adds basic dashicon component tests. Covers cases where the tag name or
other properties are conditionally rendered. Related to progress on
#641. This PR adds the components directory to the list of entry points
configured for tests by webpack.

This introduces Enzyme and the react-test-renderer library as dev dependencies.

Testing Instructions
Run npm i && npm run test-unit ensure tests pass. Change Dashicon logic to ensure tests fail as they should.

Adds basic rendering dashicon unit tests.  Related to #641.  The
Dashicon should not render when an icon is not provided.
@BE-Webdesign BE-Webdesign added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label May 29, 2017
Copy link
Member

@nylen nylen left a comment

Choose a reason for hiding this comment

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

It looks like git will be smart enough to merge this without rebasing, even though the package.json and Webpack changes were already merged in #926.

@BE-Webdesign
Copy link
Contributor Author

It looks like git will be smart enough to merge this without rebasing, even though the package.json and Webpack changes were already merged in #926.

Let's see!

@BE-Webdesign BE-Webdesign merged commit a5d705b into master May 29, 2017
@youknowriad youknowriad deleted the add/test/dash-icon branch May 30, 2017 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants