-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds getDOMElement() to createComponent.js (#22)
* Added a new method to the createComponent, called 'getDOMElement', to retrieve the root DOM element of the component * Added a test to cover the new method getDOMElement(). For that I imported ReactDOM and added an expectedRender with a JSX to be rendered and be asserted with * Fixed typo in JSDoc * Added documentation about the getDOMElement() in the createComponent.js * Changed the createComponent.spec.js to remove the created/rendered component in the afterEach() spec's lifecycle
- Loading branch information
1 parent
2324cf9
commit 28518cc
Showing
3 changed files
with
56 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters