Skip to content

Add Dashicon unit tests.#928

Merged
BE-Webdesign merged 1 commit intomasterfrom
add/test/dash-icon
May 29, 2017
Merged

Add Dashicon unit tests.#928
BE-Webdesign merged 1 commit intomasterfrom
add/test/dash-icon

Conversation

@BE-Webdesign
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants